X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FDispatcher.cc;h=2d9d3377011a5d6eef4f9984633f17da738b1c0c;hp=fd93ccfb3948c249e543882b47fde522c8330ca6;hb=33842c860fe18ca8cf087905992885687434320c;hpb=6dd7ae54e742339cc49e640d1076a310a0f4eedd diff --git a/src/Moof/Dispatcher.cc b/src/Moof/Dispatcher.cc index fd93ccf..2d9d337 100644 --- a/src/Moof/Dispatcher.cc +++ b/src/Moof/Dispatcher.cc @@ -76,7 +76,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; @@ -135,7 +135,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); } }