Merge branch 'master' of github.com:novacoin-project/novacoin
[novacoin.git] / src / bitcoinrpc.h
index 5f76f6f..d0a3712 100644 (file)
@@ -109,8 +109,8 @@ private:
     std::map<std::string, const CRPCCommand*> 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<unsigned char> ParseHexV(const json_spirit::Value& v, std::string strName);
-extern std::vector<unsigned char> 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<unsigned char> ParseHexV(const json_spirit::Value& v, const std::string& strName);
+extern std::vector<unsigned char> 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);