diff options
author | chriseth <chris@ethereum.org> | 2018-06-05 01:54:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 01:54:14 +0800 |
commit | 4073c02cf34254dce2710f48acb95e9d39b11f0a (patch) | |
tree | 1b023f448d7c29ccbd62d14e9d33c2a199d80eaf /libsolidity | |
parent | c2e4c4651a725a55f9ab0995fdebd25165a656f3 (diff) | |
parent | 1ce40f4089bc2662430dbc66f71702c7e380e2b0 (diff) | |
download | dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar.gz dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar.zst dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.zip |
Merge pull request #4208 from ethereum/extract-name-and-type-tests
Extract name and type tests
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/analysis/ViewPureChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/analysis/ViewPureChecker.cpp b/libsolidity/analysis/ViewPureChecker.cpp index d9843012..107eb3aa 100644 --- a/libsolidity/analysis/ViewPureChecker.cpp +++ b/libsolidity/analysis/ViewPureChecker.cpp @@ -117,7 +117,7 @@ private: bool ViewPureChecker::check() { // The bool means "enforce view with errors". - map<ContractDefinition const*, bool> contracts; + vector<pair<ContractDefinition const*, bool>> contracts; for (auto const& node: m_ast) { @@ -125,7 +125,7 @@ bool ViewPureChecker::check() solAssert(source, ""); bool enforceView = source->annotation().experimentalFeatures.count(ExperimentalFeature::V050); for (ContractDefinition const* c: source->filteredNodes<ContractDefinition>(source->nodes())) - contracts[c] = enforceView; + contracts.emplace_back(c, enforceView); } // Check modifiers first to infer their state mutability. |