diff options
| author | Daniel Kraft <[email protected]> | 2014-12-16 13:45:27 +0100 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2014-12-16 13:45:27 +0100 |
| commit | 7c8e4c5cfb3dd88bbe89cc14b703d7c59bafed6e (patch) | |
| tree | beab9a15f837e61465cd2941713593eb11250fc7 /src/rpcserver.h | |
| parent | Merge pull request #5487 (diff) | |
| download | discoin-7c8e4c5cfb3dd88bbe89cc14b703d7c59bafed6e.tar.xz discoin-7c8e4c5cfb3dd88bbe89cc14b703d7c59bafed6e.zip | |
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 2b2428445..8fea38126 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 |