]> granicus.if.org Git - icinga2/commitdiff
Build fix for the demo module
authorPaul Richards <paul@minimoo.org>
Sun, 30 Aug 2015 11:26:07 +0000 (12:26 +0100)
committerMichael Friedrich <michael.friedrich@gmail.com>
Sun, 30 Aug 2015 17:04:26 +0000 (19:04 +0200)
fixes #10041

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
lib/demo/demo.cpp
lib/demo/demo.hpp

index 6ecd8008b1ecf8d63df47bac609571505d18d82c..f837546c2db145b498d68297257df2f827bce1ec 100644 (file)
@@ -59,10 +59,10 @@ void Demo::DemoTimerHandler(void)
        }
 }
 
-Value Demo::DemoMessageHandler(const MessageOrigin& origin, const Dictionary::Ptr&)
+Value Demo::DemoMessageHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr&)
 {
        Log(LogInformation, "Demo")
-           << "Got demo message from '" << origin.FromClient->GetEndpoint()->GetName() << "'";
+           << "Got demo message from '" << origin->FromClient->GetEndpoint()->GetName() << "'";
 
        return Empty;
 }
index 679cfe516469449140fda28ce132cb3e80bd2e28..c749270196fb06e446d08e21cb04d28e664e4bf9 100644 (file)
@@ -38,7 +38,7 @@ public:
 
        virtual void Start(void);
 
-       static Value DemoMessageHandler(const MessageOrigin& origin, const Dictionary::Ptr& params);
+       static Value DemoMessageHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params);
 
 
 private: