]> granicus.if.org Git - icinga2/commitdiff
Compilation fixes for gcc.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Apr 2012 13:51:17 +0000 (15:51 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Apr 2012 13:51:17 +0000 (15:51 +0200)
base/dictionary.cpp
jsonrpc/jsonrpcclient.h
jsonrpc/netstring.h

index 4ec935bc64138c93c5f752ffc6a83207e207fe55..1f69feb27e81968762648bbd0a4fb94efd1e1f52 100644 (file)
@@ -27,7 +27,7 @@ bool Dictionary::GetValueString(string key, string *value)
        if (!GetValueVariant(key, &data))
                return false;
 
-       *value = data;
+       *value = static_cast<string>(data);
        return true;
 }
 
index 449fb8c1c51c85fbcee72276cdf7052282ac1b0a..2ad6f343176dd6ca5358dea0596f54d0d7a0e1c3 100644 (file)
@@ -9,7 +9,7 @@ struct I2_JSONRPC_API NewMessageEventArgs : public EventArgs
        typedef shared_ptr<NewMessageEventArgs> Ptr;
        typedef weak_ptr<NewMessageEventArgs> WeakPtr;
 
-       Message Message;
+       icinga::Message Message;
 };
 
 class I2_JSONRPC_API JsonRpcClient : public TCPClient
index 1895b1037dc9d67af764df03908d9aa054dade91..7e3d2dbba4326a90a6bb090710b35052d897f66e 100644 (file)
@@ -10,7 +10,7 @@ private:
        size_t m_Length;
        void *m_Data;
 
-       static Dictionary::Ptr Netstring::GetDictionaryFromJson(cJSON *json);
+       static Dictionary::Ptr GetDictionaryFromJson(cJSON *json);
        static cJSON *GetJsonFromDictionary(const Dictionary::Ptr& dictionary);
 
 public: