From cd4d9b6ebfa4a66ba6bd89c5b7d2b34eb25864af Mon Sep 17 00:00:00 2001 From: Huang Peng Date: Sat, 28 Feb 2009 21:42:11 +0800 Subject: Assert input of ibus_text_new_* --- src/ibustext.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ibustext.c b/src/ibustext.c index 362ce82..c1caa6b 100644 --- a/src/ibustext.c +++ b/src/ibustext.c @@ -172,7 +172,7 @@ ibus_text_copy (IBusText *dest, IBusText * ibus_text_new_from_string (const gchar *str) { - g_return_val_if_fail (str != NULL, NULL); + g_assert (str); IBusText *text; @@ -187,7 +187,7 @@ ibus_text_new_from_string (const gchar *str) IBusText * ibus_text_new_from_ucs4 (const gunichar *str) { - g_return_val_if_fail (str != NULL, NULL); + g_assert (str); IBusText *text; gchar *buf; @@ -209,7 +209,7 @@ ibus_text_new_from_ucs4 (const gunichar *str) IBusText * ibus_text_new_from_static_string (const gchar *str) { - g_return_val_if_fail (str != NULL, NULL); + g_assert (str); IBusText *text; @@ -225,7 +225,7 @@ IBusText * ibus_text_new_from_printf (const gchar *format, ...) { - g_return_val_if_fail (format != NULL, NULL); + g_assert (format); gchar *str; IBusText *text; -- cgit