diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2017-01-23 21:51:17 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2017-01-23 22:25:13 +0800 |
commit | 399b7b695a2ffe5ae2b07628860712fc76dfe03c (patch) | |
tree | 24b057addba1e5615cb830495ddd326418f78747 /libsolidity/analysis | |
parent | 8dc306d62b1d7ef2816187175958ce4edab0170c (diff) | |
download | dexon-solidity-399b7b695a2ffe5ae2b07628860712fc76dfe03c.tar.gz dexon-solidity-399b7b695a2ffe5ae2b07628860712fc76dfe03c.tar.zst dexon-solidity-399b7b695a2ffe5ae2b07628860712fc76dfe03c.zip |
analysis: fix format
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/DeclarationContainer.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libsolidity/analysis/DeclarationContainer.cpp b/libsolidity/analysis/DeclarationContainer.cpp index 04836603..7e8cd2ca 100644 --- a/libsolidity/analysis/DeclarationContainer.cpp +++ b/libsolidity/analysis/DeclarationContainer.cpp @@ -42,9 +42,10 @@ Declaration const* DeclarationContainer::conflictingDeclaration( if (m_invisibleDeclarations.count(*_name)) declarations += m_invisibleDeclarations.at(*_name); - if (dynamic_cast<FunctionDefinition const*>(&_declaration) || + if ( + dynamic_cast<FunctionDefinition const*>(&_declaration) || dynamic_cast<EventDefinition const*>(&_declaration) - ) + ) { // check that all other declarations with the same name are functions or a public state variable or events. // And then check that the signatures are different. @@ -56,8 +57,10 @@ Declaration const* DeclarationContainer::conflictingDeclaration( continue; return declaration; } - if (!dynamic_cast<FunctionDefinition const*>(declaration) && - !dynamic_cast<EventDefinition const*>(declaration)) + if ( + !dynamic_cast<FunctionDefinition const*>(declaration) && + !dynamic_cast<EventDefinition const*>(declaration) + ) return declaration; // Or, continue. } |