Skip to content

Commit

Permalink
Merge pull request zcash#5484
Browse files Browse the repository at this point in the history
7c8e4c5 Make pass-by-ref arguments const. (Daniel Kraft)
  • Loading branch information
laanwj committed Dec 17, 2014
2 parents 89802fe + 7c8e4c5 commit 4444b87
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions src/rest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ static bool ParseHashStr(const string& strReq, uint256& v)
}

static bool rest_headers(AcceptedConnection* conn,
string& strReq,
map<string, string>& mapHeaders,
const std::string& strReq,
const std::map<std::string, std::string>& mapHeaders,
bool fRun)
{
vector<string> params;
Expand Down Expand Up @@ -153,8 +153,8 @@ static bool rest_headers(AcceptedConnection* conn,
}

static bool rest_block(AcceptedConnection* conn,
string& strReq,
map<string, string>& mapHeaders,
const std::string& strReq,
const std::map<std::string, std::string>& mapHeaders,
bool fRun,
bool showTxDetails)
{
Expand Down Expand Up @@ -211,24 +211,24 @@ static bool rest_block(AcceptedConnection* conn,
}

static bool rest_block_extended(AcceptedConnection* conn,
string& strReq,
map<string, string>& mapHeaders,
const std::string& strReq,
const std::map<std::string, std::string>& mapHeaders,
bool fRun)
{
return rest_block(conn, strReq, mapHeaders, fRun, true);
}

static bool rest_block_notxdetails(AcceptedConnection* conn,
string& strReq,
map<string, string>& mapHeaders,
const std::string& strReq,
const std::map<std::string, std::string>& mapHeaders,
bool fRun)
{
return rest_block(conn, strReq, mapHeaders, fRun, false);
}

static bool rest_tx(AcceptedConnection* conn,
string& strReq,
map<string, string>& mapHeaders,
const std::string& strReq,
const std::map<std::string, std::string>& mapHeaders,
bool fRun)
{
vector<string> params;
Expand Down Expand Up @@ -280,8 +280,8 @@ static bool rest_tx(AcceptedConnection* conn,
static const struct {
const char* prefix;
bool (*handler)(AcceptedConnection* conn,
string& strURI,
map<string, string>& mapHeaders,
const std::string& strURI,
const std::map<std::string, std::string>& mapHeaders,
bool fRun);
} uri_prefixes[] = {
{"/rest/tx/", rest_tx},
Expand All @@ -291,8 +291,8 @@ static const struct {
};

bool HTTPReq_REST(AcceptedConnection* conn,
string& strURI,
map<string, string>& mapHeaders,
const std::string& strURI,
const std::map<std::string, std::string>& mapHeaders,
bool fRun)
{
try {
Expand Down
4 changes: 2 additions & 2 deletions src/rpcserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4444b87

Please sign in to comment.