From f0c334670dfef7c1b1d1ae610cf19ae9ad2822ca Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 20 Oct 2014 13:02:06 +0200 Subject: Coding style cleanup: const and vecptr. --- ASTPrinter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ASTPrinter.cpp') 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 _ast, const std::string& _source) +ASTPrinter::ASTPrinter(ptr _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'; } -- cgit v1.2.3