Created a PingItem type as an alias to the smart pointer.
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 23 Feb 2012 01:56:05 +0000 (23:56 -0200)
committerGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Thu, 23 Feb 2012 01:56:05 +0000 (23:56 -0200)
src/host/pinger.h
src/host/pingscheduler.h

index c0fa9f9..b2eed2d 100644 (file)
@@ -26,6 +26,7 @@
 #include <string>
 
 #include <boost/function.hpp>
+#include <boost/shared_ptr.hpp>
 
 //-----------------------------------------------------------------------------
 // Pinger
@@ -53,4 +54,10 @@ private:
 
 };
 
+//-----------------------------------------------------------------------------
+// PingerItem
+//-----------------------------------------------------------------------------
+
+typedef boost::shared_ptr<Pinger> PingerItem;
+
 #endif // PINGER_H
index 0ff5b1b..161866e 100644 (file)
@@ -109,7 +109,7 @@ private:
     /// Object responsible to evaluate the status of the host
     HostStatus HostAnalyzer;
     /// Internal boost pinger object
-    boost::shared_ptr<Pinger> Ping;
+    PingerItem Ping;
     /// Thread object
     boost::thread Thread;