X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fbitcoinrpc.h;fp=src%2Fbitcoinrpc.h;h=d0a3712ba053bd966f8da6f913f4301e34319b03;hp=5f76f6fce33cbfcd3e0f9946af370d844bfd2be8;hb=d1bba16f7f928a677bfd51083c1689084b76009c;hpb=2d9f474bb1fe11944327529f9339518963264a70 diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h index 5f76f6f..d0a3712 100644 --- a/src/bitcoinrpc.h +++ b/src/bitcoinrpc.h @@ -109,8 +109,8 @@ private: std::map mapCommands; public: CRPCTable(); - const CRPCCommand* operator[](std::string name) const; - std::string help(std::string name) const; + const CRPCCommand* operator[](const std::string& name) const; + std::string help(const std::string& name) const; /** * Execute a method. @@ -146,10 +146,10 @@ extern void EnsureWalletIsUnlocked(); // Utilities: convert hex-encoded Values // (throws error if not hex). // -extern uint256 ParseHashV(const json_spirit::Value& v, std::string strName); -extern uint256 ParseHashO(const json_spirit::Object& o, std::string strKey); -extern std::vector ParseHexV(const json_spirit::Value& v, std::string strName); -extern std::vector ParseHexO(const json_spirit::Object& o, std::string strKey); +extern uint256 ParseHashV(const json_spirit::Value& v, const std::string& strName); +extern uint256 ParseHashO(const json_spirit::Object& o, const std::string& strKey); +extern std::vector ParseHexV(const json_spirit::Value& v, const std::string& strName); +extern std::vector ParseHexO(const json_spirit::Object& o, const std::string& strKey); extern json_spirit::Value getconnectioncount(const json_spirit::Array& params, bool fHelp); // in rpcnet.cpp extern json_spirit::Value getpeerinfo(const json_spirit::Array& params, bool fHelp);