mHandles.erase(id);
}
- void dispatch(const std::string& event, const Message* message)
+ void dispatch(const std::string& event)
{
std::pair<CallbackIt,CallbackIt>
callbacks(mCallbacks.equal_range(event));
for (CallbackIt it = callbacks.first; it != callbacks.second; ++it)
{
Function callback = (*it).second.second;
- callback(message);
+ callback();
}
}
}
-void Dispatch::dispatch(const std::string& event, const Message* message)
+void Dispatch::dispatch(const std::string& event)
{
// pass through
- mImpl->dispatch(event, message);
+ mImpl->dispatch(event);
}