diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-28 21:42:11 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2009-02-28 21:42:11 +0800 |
commit | cd4d9b6ebfa4a66ba6bd89c5b7d2b34eb25864af (patch) | |
tree | ec1411458dfc7ed7a93197b5fc74bd1429e56a7d | |
parent | 3ff6035410d535ec17e5049be43c09dcd229e7b9 (diff) | |
download | ibus-cd4d9b6ebfa4a66ba6bd89c5b7d2b34eb25864af.tar.gz ibus-cd4d9b6ebfa4a66ba6bd89c5b7d2b34eb25864af.tar.xz ibus-cd4d9b6ebfa4a66ba6bd89c5b7d2b34eb25864af.zip |
Assert input of ibus_text_new_*
-rw-r--r-- | src/ibustext.c | 8 |
1 files 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; |