aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/rpcdump.cpp
diff options
context:
space:
mode:
authorKarel Bilek <[email protected]>2017-09-22 20:04:07 +0200
committerMarcoFalke <[email protected]>2018-02-10 10:05:07 -0500
commit91986ed206fa830e5985560c6895b0d30b375054 (patch)
tree4422cee35e5ae916fd72d6dc5bff510e17e5814d /src/wallet/rpcdump.cpp
parentunivalue: Bump subtree (diff)
downloaddiscoin-91986ed206fa830e5985560c6895b0d30b375054.tar.xz
discoin-91986ed206fa830e5985560c6895b0d30b375054.zip
scripted-diff: Use UniValue.pushKV instead of push_back(Pair())
-BEGIN VERIFY SCRIPT- git grep -l "push_back(Pair" | xargs sed -i "s/push_back(Pair(\(.*\)));/pushKV(\1);/g" -END VERIFY SCRIPT-
Diffstat (limited to 'src/wallet/rpcdump.cpp')
-rw-r--r--src/wallet/rpcdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index 03fb824e7..741ea2534 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -790,7 +790,7 @@ UniValue dumpwallet(const JSONRPCRequest& request)
file.close();
UniValue reply(UniValue::VOBJ);
- reply.push_back(Pair("filename", filepath.string()));
+ reply.pushKV("filename", filepath.string());
return reply;
}