diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-05-10 13:35:44 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-04 09:16:05 +0200 |
commit | 53b4671a9de75f7c8e2903d510cf88867c3f6b97 (patch) | |
tree | 9bb3808d270e58f7c7a0a546110f5e9dbd941fc7 /src/rpcprotocol.cpp | |
parent | 15982a8b69ec6ab3c3a6bf71fc6a9b681d3ff541 (diff) |
extend conversion to UniValue
Diffstat (limited to 'src/rpcprotocol.cpp')
-rw-r--r-- | src/rpcprotocol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpcprotocol.cpp b/src/rpcprotocol.cpp index 72a7b76343..9b422894ef 100644 --- a/src/rpcprotocol.cpp +++ b/src/rpcprotocol.cpp @@ -256,7 +256,7 @@ int ReadHTTPMessage(std::basic_istream<char>& stream, map<string, string JSONRPCRequest(const string& strMethod, const Array& params, const Value& id) { - Object request; + Object request(UniValue::VOBJ); request.push_back(Pair("method", strMethod)); request.push_back(Pair("params", params)); request.push_back(Pair("id", id)); @@ -265,7 +265,7 @@ string JSONRPCRequest(const string& strMethod, const Array& params, const Value& Object JSONRPCReplyObj(const Value& result, const Value& error, const Value& id) { - Object reply; + Object reply(UniValue::VOBJ); if (!error.isNull()) reply.push_back(Pair("result", NullUniValue)); else @@ -283,7 +283,7 @@ string JSONRPCReply(const Value& result, const Value& error, const Value& id) Object JSONRPCError(int code, const string& message) { - Object error; + UniValue error(UniValue::VOBJ); error.push_back(Pair("code", code)); error.push_back(Pair("message", message)); return error; |