diff options
author | chriseth <chris@ethereum.org> | 2018-10-10 17:43:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-10 17:43:42 +0800 |
commit | 06200b4b64c911ea2e0b12076e0fa02093dacbf8 (patch) | |
tree | 5465e3be065998e506145d8e7272cc783d185427 /libsolidity/analysis | |
parent | f6f0cecc2f64f4fcda3da467bbe306b5859729aa (diff) | |
parent | 6c3d12d85bc7977817e8dc1c5bd0af4b29406b58 (diff) | |
download | dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar.gz dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar.bz2 dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar.lz dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar.xz dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.tar.zst dexon-solidity-06200b4b64c911ea2e0b12076e0fa02093dacbf8.zip |
Merge pull request #5180 from ethereum/cpp-cleanup
Some C++ cleanup
Diffstat (limited to 'libsolidity/analysis')
-rw-r--r-- | libsolidity/analysis/SyntaxChecker.cpp | 2 | ||||
-rw-r--r-- | libsolidity/analysis/TypeChecker.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/analysis/SyntaxChecker.cpp b/libsolidity/analysis/SyntaxChecker.cpp index d40a00d4..ab544388 100644 --- a/libsolidity/analysis/SyntaxChecker.cpp +++ b/libsolidity/analysis/SyntaxChecker.cpp @@ -76,7 +76,7 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma) { solAssert(m_sourceUnit, ""); vector<string> literals(_pragma.literals().begin() + 1, _pragma.literals().end()); - if (literals.size() == 0) + if (literals.empty()) m_errorReporter.syntaxError( _pragma.location(), "Experimental feature name is missing." diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index bc040623..39ea494d 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -2123,7 +2123,7 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess) auto& annotation = _memberAccess.annotation(); - if (possibleMembers.size() == 0) + if (possibleMembers.empty()) { if (initialMemberCount == 0) { |