aboutsummaryrefslogtreecommitdiffstats
path: root/ASTPrinter.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-20 19:02:06 +0800
committerChristian <c@ethdev.com>2014-10-20 19:02:06 +0800
commitf0c334670dfef7c1b1d1ae610cf19ae9ad2822ca (patch)
tree7979e36c4b962bb3da82f86df52518b321bca947 /ASTPrinter.cpp
parent646f106a34f189b225745a079fdc8560b9230e68 (diff)
downloaddexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.gz
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.bz2
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.lz
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.xz
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.tar.zst
dexon-solidity-f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca.zip
Coding style cleanup: const and vecptr.
Diffstat (limited to 'ASTPrinter.cpp')
-rw-r--r--ASTPrinter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ASTPrinter.cpp b/ASTPrinter.cpp
index cd8263f2..1ff0c52e 100644
--- a/ASTPrinter.cpp
+++ b/ASTPrinter.cpp
@@ -28,7 +28,7 @@ namespace dev
namespace solidity
{
-ASTPrinter::ASTPrinter(ptr<ASTNode> _ast, const std::string& _source)
+ASTPrinter::ASTPrinter(ptr<ASTNode> _ast, std::string const& _source)
: m_indentation(0), m_source(_source), m_ast(_ast)
{
}
@@ -242,7 +242,7 @@ bool ASTPrinter::visit(ElementaryTypeNameExpression& _node)
bool ASTPrinter::visit(Literal& _node)
{
- const char* tokenString = Token::toString(_node.getToken());
+ char const* tokenString = Token::toString(_node.getToken());
if (tokenString == nullptr)
tokenString = "[no token]";
writeLine(std::string("Literal, token: ") + tokenString + " value: " + _node.getValue());
@@ -415,7 +415,7 @@ std::string ASTPrinter::getIndentation() const
return std::string(m_indentation * 2, ' ');
}
-void ASTPrinter::writeLine(const std::string& _line)
+void ASTPrinter::writeLine(std::string const& _line)
{
*m_ostream << getIndentation() << _line << '\n';
}