[apps/escher] Invocation::Action returns a bool

This commit is contained in:
Léa Saviot
2018-10-26 11:36:54 +02:00
committed by Émilie Feral
parent 91d6955ddf
commit bea78aa3b1
16 changed files with 35 additions and 11 deletions

View File

@@ -1,11 +1,11 @@
#include <escher/invocation.h>
Invocation::Invocation(Action a, void * c) :
m_action(a),
m_context(c)
m_action(a),
m_context(c)
{
}
void Invocation::perform(void * sender) {
(*m_action)(m_context, sender);
bool Invocation::perform(void * sender) {
return (*m_action)(m_context, sender);
}