From bf62b97a6a86d8bd800e6c6116e3a1ed04cb9bbc Mon Sep 17 00:00:00 2001 From: Jianping Wu Date: Mon, 11 Feb 2019 22:30:32 -0800 Subject: [PATCH] Fixed constructor initialization warnings. Fixed nameSpace variable assignment used in keva_filter. --- src/keva/common.cpp | 2 +- src/rpc/rpckeva_nonwallet.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/keva/common.cpp b/src/keva/common.cpp index dceb0b602..636e3e6e5 100644 --- a/src/keva/common.cpp +++ b/src/keva/common.cpp @@ -91,7 +91,7 @@ public: }; CCacheKeyIterator::CCacheKeyIterator(const CKevaCache& c, CKevaIterator* b) - : cache(c), base(b), CKevaIterator(b->getNamespace()) + : CKevaIterator(b->getNamespace()), cache(c), base(b) { /* Add a seek-to-start to ensure that everything is consistent. This call may be superfluous if we seek to another position afterwards anyway, diff --git a/src/rpc/rpckeva_nonwallet.cpp b/src/rpc/rpckeva_nonwallet.cpp index db56aa8ea..872df99cf 100644 --- a/src/rpc/rpckeva_nonwallet.cpp +++ b/src/rpc/rpckeva_nonwallet.cpp @@ -108,7 +108,7 @@ std::string getKevaInfoHelp (const std::string& indent, const std::string& trail /** * Utility routine to construct a "name info" object to return. This is used - * for name_show and also name_list. + * for keva_filter. * @param name The name. * @param value The name's value. * @param outp The last update's outpoint. @@ -172,7 +172,6 @@ UniValue keva_filter(const JSONRPCRequest& request) " ...\n" "]\n" "\nExamples:\n" - + HelpExampleCli ("keva_filter", "\"\" 5") + HelpExampleCli ("keva_filter", "\"^id/\"") + HelpExampleCli ("keva_filter", "\"^id/\" 36000 0 0 \"stat\"") + HelpExampleRpc ("keva_filter", "\"^d/\"") @@ -202,7 +201,6 @@ UniValue keva_filter(const JSONRPCRequest& request) if (request.params.size() >= 1) { const std::string namespaceStr = request.params[0].get_str(); - valtype nameSpace; if (!DecodeKevaNamespace(namespaceStr, Params(), nameSpace)) { throw JSONRPCError (RPC_INVALID_PARAMETER, "invalid namespace id"); }