]> granicus.if.org Git - icinga2/commitdiff
Build fix for OS X.
authorGunnar Beutner <gunnar@beutner.name>
Fri, 15 Mar 2013 08:07:50 +0000 (09:07 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Fri, 15 Mar 2013 08:07:50 +0000 (09:07 +0100)
lib/remoting/jsonrpcconnection.cpp
lib/remoting/messagepart.cpp

index b66ad9f7a1c023e41a9f86fe48b71a3a8e91b2c1..6e60abb183083c5a76149f57f59970a8a8ad88b4 100644 (file)
@@ -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: " +
index 7975881a066a91fe7d8a80c10cb88961d58b1964..b459b9dcde0b478e8e27936d9c8270e471ec1434 100644 (file)
@@ -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;
 }