forked from enlightenment/enlightenment
modules/everything: Fix parentheses for CHECK_TYPE macro
Without these parentheses the logic would always be false. CID 1211999, CID 1212003
This commit is contained in:
parent
47d2987208
commit
831a45a2cb
|
@ -559,7 +559,7 @@ _begin(Evry_Plugin *plugin, const Evry_Item *it)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* provide object */
|
/* provide object */
|
||||||
if (!CHECK_TYPE(it, EVRY_TYPE_ACTION))
|
if (!(CHECK_TYPE(it, EVRY_TYPE_ACTION)))
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1005,7 +1005,7 @@ _recentf_browse(Evry_Plugin *plugin, const Evry_Item *it)
|
||||||
{
|
{
|
||||||
Plugin *p = NULL;
|
Plugin *p = NULL;
|
||||||
|
|
||||||
if (!it || !CHECK_TYPE(it, EVRY_TYPE_FILE))
|
if (!it || !(CHECK_TYPE(it, EVRY_TYPE_FILE)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
GET_FILE(file, it);
|
GET_FILE(file, it);
|
||||||
|
@ -1026,7 +1026,7 @@ _recentf_begin(Evry_Plugin *plugin, const Evry_Item *it)
|
||||||
{
|
{
|
||||||
Plugin *p;
|
Plugin *p;
|
||||||
|
|
||||||
if (it && !CHECK_TYPE(it, EVRY_TYPE_ACTION))
|
if (it && !(CHECK_TYPE(it, EVRY_TYPE_ACTION)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
EVRY_PLUGIN_INSTANCE(p, plugin);
|
EVRY_PLUGIN_INSTANCE(p, plugin);
|
||||||
|
|
Loading…
Reference in New Issue