forked from enlightenment/efl
efl/ecore_imf/ibus: use EINA_SAFETY_ON_NULL_RETURN for checking NULL parameter
SVN revision: 82503
This commit is contained in:
parent
1fbed8d3a6
commit
01af3144d4
|
@ -568,7 +568,8 @@ _ecore_imf_context_ibus_commit_text_cb(IBusInputContext *ibuscontext EINA_UNUSED
|
|||
IBusText *text,
|
||||
IBusIMContext *ibusimcontext)
|
||||
{
|
||||
if (!ibusimcontext || !text) return;
|
||||
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext);
|
||||
EINA_SAFETY_ON_NULL_RETURN(text);
|
||||
char *commit_str = text->text ? text->text : "";
|
||||
|
||||
EINA_LOG_DBG("commit string : %s", commit_str);
|
||||
|
@ -625,7 +626,8 @@ _ecore_imf_context_ibus_update_preedit_text_cb(IBusInputContext *ibuscontext EI
|
|||
gboolean visible,
|
||||
IBusIMContext *ibusimcontext)
|
||||
{
|
||||
if (!ibusimcontext || !text) return;
|
||||
EINA_SAFETY_ON_NULL_RETURN(ibusimcontext);
|
||||
EINA_SAFETY_ON_NULL_RETURN(text);
|
||||
|
||||
const char *str;
|
||||
gboolean flag;
|
||||
|
|
Loading…
Reference in New Issue