]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Dispatcher.cc
new lua scripting for scene loading
[chaz/yoink] / src / Moof / Dispatcher.cc
index 7e33c270d848050caf7fe43c8a17633106928fb0..369d4515ffe401aa75b8956cdecedb93638475ed 100644 (file)
 
 #include "Dispatcher.hh"
 
-#include <iostream>
-
 
 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);
        }
 }
This page took 0.019048 seconds and 4 git commands to generate.