forked from enlightenment/efl
eolian-cxx: Workaround for callbacks without void* data parameter
This commit is contained in:
parent
7e84cc0154
commit
15d85d7dc6
|
@ -247,7 +247,7 @@ parameters_find_callback(parameters_container_type const& parameters)
|
|||
for (auto it = parameters.cbegin(), last = parameters.cend();
|
||||
it != last; ++it)
|
||||
{
|
||||
if (type_is_callback((*it).type))
|
||||
if (type_is_callback((*it).type) && it + 1 != last)
|
||||
return it;
|
||||
}
|
||||
return parameters.cend();
|
||||
|
|
Loading…
Reference in New Issue