From ca08fe50c6aefb9e34f2843c36512750900d86ab Mon Sep 17 00:00:00 2001 From: LianaHus Date: Wed, 16 Sep 2015 13:24:58 +0200 Subject: style fixes --- libsolidity/AST.h | 2 +- libsolidity/AST_accept.h | 4 ++-- libsolidity/Parser.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libsolidity') diff --git a/libsolidity/AST.h b/libsolidity/AST.h index db83cf59..de0ef3ef 100644 --- a/libsolidity/AST.h +++ b/libsolidity/AST.h @@ -977,7 +977,7 @@ public: Throw(SourceLocation const& _location): Statement(_location) {} virtual void accept(ASTVisitor& _visitor) override; virtual void accept(ASTConstVisitor& _visitor) const override; - virtual void checkTypeRequirements() override{}; + virtual void checkTypeRequirements() override {}; }; /** diff --git a/libsolidity/AST_accept.h b/libsolidity/AST_accept.h index d07c2cd0..1388466c 100644 --- a/libsolidity/AST_accept.h +++ b/libsolidity/AST_accept.h @@ -493,13 +493,13 @@ void Return::accept(ASTConstVisitor& _visitor) const void Throw::accept(ASTVisitor& _visitor) { - if (_visitor.visit(*this)) + _visitor.visit(*this); _visitor.endVisit(*this); } void Throw::accept(ASTConstVisitor& _visitor) const { - if (_visitor.visit(*this)) + _visitor.visit(*this); _visitor.endVisit(*this); } diff --git a/libsolidity/Parser.cpp b/libsolidity/Parser.cpp index ac9e04c8..1ea406be 100644 --- a/libsolidity/Parser.cpp +++ b/libsolidity/Parser.cpp @@ -627,9 +627,9 @@ ASTPointer Parser::parseStatement() ASTNodeFactory nodeFactory(*this); ASTPointer expression; if (m_scanner->next() != Token::Semicolon) - BOOST_THROW_EXCEPTION(createParserError("Throw statement cannot have parameters.")); + BOOST_THROW_EXCEPTION(createParserError("Expected semicolon.")); - statement = nodeFactory.createNode(/*expression*/); + statement = nodeFactory.createNode(); break; } case Token::Identifier: -- cgit v1.2.3