From d570ab44c893972dfc4541d4970ec9a172e28096 Mon Sep 17 00:00:00 2001 From: LianaHus Date: Fri, 11 Sep 2015 13:39:25 +0200 Subject: style fixes --- libsolidity/AST.h | 2 +- test/libsolidity/SolidityNameAndTypeResolution.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolidity/AST.h b/libsolidity/AST.h index 1288b5d3..48790e6a 100644 --- a/libsolidity/AST.h +++ b/libsolidity/AST.h @@ -1273,7 +1273,7 @@ public: /// argument types in a call context. void overloadResolution(TypePointers const& _argumentTypes); - ContractDefinition const* contractScope() { return m_contractScope; } + ContractDefinition const* contractScope() const { return m_contractScope; } private: ASTPointer m_name; diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 2b343db3..883d7807 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -2200,7 +2200,7 @@ BOOST_AUTO_TEST_CASE(creating_contract_within_the_contract) char const* sourceCode = R"( contract Test { function f() { var x = new Test(); } - } + } )"; BOOST_CHECK_THROW(parseTextAndResolveNames(sourceCode), TypeError); -- cgit