Make pass-by-ref arguments const.
Make some of the arguments in rest.cpp, that are passed by reference but never modified, const to emphasise that.
This commit is contained in:
@@ -227,8 +227,8 @@ extern json_spirit::Value reconsiderblock(const json_spirit::Array& params, bool
|
||||
|
||||
// in rest.cpp
|
||||
extern bool HTTPReq_REST(AcceptedConnection *conn,
|
||||
std::string& strURI,
|
||||
std::map<std::string, std::string>& mapHeaders,
|
||||
const std::string& strURI,
|
||||
const std::map<std::string, std::string>& mapHeaders,
|
||||
bool fRun);
|
||||
|
||||
#endif // BITCOIN_RPCSERVER_H
|
||||
|
||||
Reference in New Issue
Block a user