forked from enlightenment/efl
Eina value: Fix clang warnings (use NULL instead of bool)
This commit is contained in:
parent
ddd783ec88
commit
9e68f0524b
|
@ -1704,7 +1704,7 @@ eina_value_optional_type_get(Eina_Value *value)
|
|||
|
||||
void *mem = eina_value_memory_get(value);
|
||||
if (!mem)
|
||||
return EINA_FALSE;
|
||||
return NULL;
|
||||
|
||||
if(2*sizeof(void*) <= sizeof(Eina_Value_Union))
|
||||
{
|
||||
|
|
|
@ -4406,12 +4406,12 @@ eina_value_optional_new(Eina_Value_Type const *subtype,
|
|||
if (!eina_value_setup(value, EINA_VALUE_TYPE_OPTIONAL))
|
||||
{
|
||||
eina_mempool_free(_eina_value_mp, value);
|
||||
return EINA_FALSE;
|
||||
return NULL;
|
||||
}
|
||||
if (!eina_value_optional_pset(value, subtype, initial_value))
|
||||
{
|
||||
eina_mempool_free(_eina_value_mp, value);
|
||||
return EINA_FALSE;
|
||||
return NULL;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue