diff options
author | Daniel Kraft <d@domob.eu> | 2014-12-16 13:45:27 +0100 |
---|---|---|
committer | Daniel Kraft <d@domob.eu> | 2014-12-16 13:45:27 +0100 |
commit | 7c8e4c5cfb3dd88bbe89cc14b703d7c59bafed6e (patch) | |
tree | beab9a15f837e61465cd2941713593eb11250fc7 /src/rpcserver.h | |
parent | 28a274e6ce5f0326e3c86de810eb6f4a91c8f13c (diff) |
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.
Diffstat (limited to 'src/rpcserver.h')
-rw-r--r-- | src/rpcserver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcserver.h b/src/rpcserver.h index 2b2428445d..8fea38126c 100644 --- a/src/rpcserver.h +++ b/src/rpcserver.h @@ -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 |