X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FDispatch.cc;h=af0faea390ce4bb17175607cdeb15813ffd93be7;hp=83fecae279fac9b336928531fa0b4c67a885d326;hb=c78934a448d0126709fccec3d5a636b3baa87da4;hpb=7ade2da0367685e098181d7124c9ba145a010626 diff --git a/src/Moof/Dispatch.cc b/src/Moof/Dispatch.cc index 83fecae..af0faea 100644 --- a/src/Moof/Dispatch.cc +++ b/src/Moof/Dispatch.cc @@ -72,7 +72,7 @@ public: mHandles.erase(id); } - void dispatch(const std::string& event, const Message* message) + void dispatch(const std::string& event) { std::pair callbacks(mCallbacks.equal_range(event)); @@ -80,7 +80,7 @@ public: for (CallbackIt it = callbacks.first; it != callbacks.second; ++it) { Function callback = (*it).second.second; - callback(message); + callback(); } } @@ -131,10 +131,10 @@ void Dispatch::removeTarget(unsigned id) } -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); }