From c24109ecc3e4a11fe2f70e2df00ab5a5945c1053 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 10 Feb 2017 00:33:34 +0000 Subject: [PATCH] UniValue::getValues const reference --- src/wallet/rpcwallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index a0436373c..f4b130259 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3183,7 +3183,7 @@ UniValue z_getoperationstatus_IMPL(const UniValue& params, bool fRemoveFinishedO std::set filter; if (params.size()==1) { UniValue ids = params[0].get_array(); - for (UniValue & v : ids.getValues()) { + for (const UniValue & v : ids.getValues()) { filter.insert(v.get_str()); } }