mirror of https://github.com/Icinga/icinga2.git
Build fix for OS X.
This commit is contained in:
parent
aaccee69b8
commit
876519034c
|
@ -65,7 +65,8 @@ void JsonRpcConnection::ProcessData(void)
|
|||
" message must be a dictionary."));
|
||||
}
|
||||
|
||||
OnNewMessage(GetSelf(), MessagePart(value));
|
||||
MessagePart mp(value);
|
||||
OnNewMessage(GetSelf(), mp);
|
||||
} catch (const exception& ex) {
|
||||
Logger::Write(LogCritical, "remoting", "Exception"
|
||||
" while processing message from JSON-RPC client: " +
|
||||
|
|
|
@ -76,7 +76,8 @@ bool MessagePart::Get(String key, MessagePart *value) const
|
|||
|
||||
Dictionary::Ptr dictionary = v;
|
||||
|
||||
*value = MessagePart(dictionary);
|
||||
MessagePart mp(dictionary);
|
||||
*value = mp;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue