Replace const Type& with Type const& for common types.

* std::string
* RippleAccount
* Account
* Currency
* uint256
* STAmount
* Json::Value
This commit is contained in:
Tom Ritchford
2014-08-03 19:17:56 -04:00
committed by Vinnie Falco
parent f5afe0587f
commit 648ccc7c17
143 changed files with 748 additions and 754 deletions

View File

@@ -127,7 +127,7 @@ Reader::Reader ( const Features& features )
bool
Reader::parse ( const std::string& document,
Reader::parse ( std::string const& document,
Value& root,
bool collectComments )
{
@@ -742,7 +742,7 @@ Reader::decodeDouble( Token &token )
return addError( "'" + std::string( token.start_, token.end_ ) + "' is not a number.", token );
currentValue() = value;
return true;
}
}
@@ -902,7 +902,7 @@ Reader::decodeUnicodeEscapeSequence ( Token& token,
bool
Reader::addError ( const std::string& message,
Reader::addError ( std::string const& message,
Token& token,
Location extra )
{
@@ -936,7 +936,7 @@ Reader::recoverFromError ( TokenType skipUntilToken )
bool
Reader::addErrorAndRecover ( const std::string& message,
Reader::addErrorAndRecover ( std::string const& message,
Token& token,
TokenType skipUntilToken )
{