this fixes an issue with older compilers (gcc 4.7.0)
authorKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 24 Jul 2013 16:02:46 +0000 (09:02 -0700)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Wed, 24 Jul 2013 16:03:02 +0000 (09:03 -0700)
lib/abstractroutingengine.cpp
lib/abstractroutingengine.h

index f6623fe..190d864 100644 (file)
 AbstractRoutingEngine::~AbstractRoutingEngine()
 {
 }
+
+AsyncPropertyReply::AsyncPropertyReply(const AsyncPropertyRequest &request)
+       :AsyncPropertyRequest(request), value(NULL), success(false), timeoutSource(nullptr)
+{
+       auto timeoutfunc = [](gpointer userData) {
+               AsyncPropertyReply* thisReply = static_cast<AsyncPropertyReply*>(userData);
+               if(thisReply->success == false)
+               {
+                       thisReply->error = Timeout;
+                       thisReply->completed(thisReply);
+               }
+               return 0;
+       };
+
+       if(timeout)
+       {
+               timeoutSource = g_timeout_source_new(timeout);
+               g_source_set_callback(timeoutSource,(GSourceFunc) timeoutfunc, this, nullptr);
+               g_source_attach(timeoutSource, nullptr);
+       }
+}
index 8dd5133..60dbdd2 100644 (file)
@@ -81,26 +81,7 @@ public:
 class AsyncPropertyReply: public AsyncPropertyRequest
 {
 public:
-       AsyncPropertyReply(const AsyncPropertyRequest &request)
-               :AsyncPropertyRequest(request), value(NULL), success(false), timeoutSource(nullptr)
-       {
-               auto timeoutfunc = [](gpointer userData) {
-                       AsyncPropertyReply* thisReply = static_cast<AsyncPropertyReply*>(userData);
-                       if(thisReply->success == false)
-                       {
-                               thisReply->error = Timeout;
-                               thisReply->completed(thisReply);
-                       }
-                       return 0;
-               };
-
-               if(timeout)
-               {
-                       timeoutSource = g_timeout_source_new(timeout);
-                       g_source_set_callback(timeoutSource,(GSourceFunc) timeoutfunc, this, nullptr);
-                       g_source_attach(timeoutSource, nullptr);
-               }
-       }
+       AsyncPropertyReply(const AsyncPropertyRequest &request);
 
        virtual ~AsyncPropertyReply()
        {