aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-30 02:41:07 +0800
committerChristian <c@ethdev.com>2014-10-30 02:41:07 +0800
commit70d7d9b3bc850a7a1ab251eb4c7ec163a38435c6 (patch)
tree027e6b0606b5e23a1d837bea08383e5dd39ad24b
parentc5c33485d84f602c214ebccf71ecec88ee8c0c56 (diff)
downloaddexon-solidity-70d7d9b3bc850a7a1ab251eb4c7ec163a38435c6.tar.gz
dexon-solidity-70d7d9b3bc850a7a1ab251eb4c7ec163a38435c6.tar.zst
dexon-solidity-70d7d9b3bc850a7a1ab251eb4c7ec163a38435c6.zip
Further const placement changes.
-rw-r--r--solidityCompiler.cpp2
-rw-r--r--solidityNameAndTypeResolution.cpp2
-rw-r--r--solidityParser.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/solidityCompiler.cpp b/solidityCompiler.cpp
index 0d9d59c1..22828238 100644
--- a/solidityCompiler.cpp
+++ b/solidityCompiler.cpp
@@ -71,7 +71,7 @@ private:
Expression* m_expression;
};
-bytes compileFirstExpression(const std::string& _sourceCode)
+bytes compileFirstExpression(std::string const& _sourceCode)
{
Parser parser;
ASTPointer<ContractDefinition> contract;
diff --git a/solidityNameAndTypeResolution.cpp b/solidityNameAndTypeResolution.cpp
index 833ae6d4..9e34e6d0 100644
--- a/solidityNameAndTypeResolution.cpp
+++ b/solidityNameAndTypeResolution.cpp
@@ -38,7 +38,7 @@ namespace test
namespace
{
-void parseTextAndResolveNames(const std::string& _source)
+void parseTextAndResolveNames(std::string const& _source)
{
Parser parser;
ASTPointer<ContractDefinition> contract = parser.parse(
diff --git a/solidityParser.cpp b/solidityParser.cpp
index 701a6e76..4ca9370d 100644
--- a/solidityParser.cpp
+++ b/solidityParser.cpp
@@ -37,7 +37,7 @@ namespace test
namespace
{
-ASTPointer<ASTNode> parseText(const std::string& _source)
+ASTPointer<ASTNode> parseText(std::string const& _source)
{
Parser parser;
return parser.parse(std::make_shared<Scanner>(CharStream(_source)));