mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-29 19:00:17 +02:00
Compilation fixes for gcc.
This commit is contained in:
parent
efaa2a1fd1
commit
f9bf1c3b75
@ -27,7 +27,7 @@ bool Dictionary::GetValueString(string key, string *value)
|
|||||||
if (!GetValueVariant(key, &data))
|
if (!GetValueVariant(key, &data))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
*value = data;
|
*value = static_cast<string>(data);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ struct I2_JSONRPC_API NewMessageEventArgs : public EventArgs
|
|||||||
typedef shared_ptr<NewMessageEventArgs> Ptr;
|
typedef shared_ptr<NewMessageEventArgs> Ptr;
|
||||||
typedef weak_ptr<NewMessageEventArgs> WeakPtr;
|
typedef weak_ptr<NewMessageEventArgs> WeakPtr;
|
||||||
|
|
||||||
Message Message;
|
icinga::Message Message;
|
||||||
};
|
};
|
||||||
|
|
||||||
class I2_JSONRPC_API JsonRpcClient : public TCPClient
|
class I2_JSONRPC_API JsonRpcClient : public TCPClient
|
||||||
|
@ -10,7 +10,7 @@ private:
|
|||||||
size_t m_Length;
|
size_t m_Length;
|
||||||
void *m_Data;
|
void *m_Data;
|
||||||
|
|
||||||
static Dictionary::Ptr Netstring::GetDictionaryFromJson(cJSON *json);
|
static Dictionary::Ptr GetDictionaryFromJson(cJSON *json);
|
||||||
static cJSON *GetJsonFromDictionary(const Dictionary::Ptr& dictionary);
|
static cJSON *GetJsonFromDictionary(const Dictionary::Ptr& dictionary);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user