X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FDispatcher.cc;h=369d4515ffe401aa75b8956cdecedb93638475ed;hp=7e33c270d848050caf7fe43c8a17633106928fb0;hb=542e50a284c7f5b144a5c97c17f6d89b2af0175c;hpb=a5f0d391406a68275b41448fc3f49e8d8396c497 diff --git a/src/Moof/Dispatcher.cc b/src/Moof/Dispatcher.cc index 7e33c27..369d451 100644 --- a/src/Moof/Dispatcher.cc +++ b/src/Moof/Dispatcher.cc @@ -30,15 +30,10 @@ #include "Dispatcher.hh" -#include - namespace Mf { -Notification::~Notification() {} - - struct Dispatcher::Impl { Impl() : @@ -78,7 +73,7 @@ struct Dispatcher::Impl for (CallbackIter jt = first; jt != last; ++jt) { - if (((*jt).second).first == id) + if ((*jt).second.first == id) { callbacks.erase(jt); break; @@ -137,7 +132,7 @@ void Dispatcher::dispatch(const std::string& message, const Notification* param) for (Impl::CallbackIter it = callbacks.first; it != callbacks.second; ++it) { - Function callback = ((*it).second).second; + Function callback = (*it).second.second; callback(param); } }