diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-14 07:17:52 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-19 21:56:40 +0800 |
commit | f3e591eedd19b181e71682c8dd5d032b52cdced8 (patch) | |
tree | b155c8b298b797a503aa2dd6ff62fc6d6b0a72d8 /libsolidity/ast/AST.cpp | |
parent | 89a1e97e7dd8a9af5a5fe2c5530cf4217c79f43b (diff) | |
download | dexon-solidity-f3e591eedd19b181e71682c8dd5d032b52cdced8.tar.gz dexon-solidity-f3e591eedd19b181e71682c8dd5d032b52cdced8.tar.zst dexon-solidity-f3e591eedd19b181e71682c8dd5d032b52cdced8.zip |
Add template for merging sets
Diffstat (limited to 'libsolidity/ast/AST.cpp')
-rw-r--r-- | libsolidity/ast/AST.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index f4ab6491..ebc8bd48 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -95,10 +95,7 @@ set<SourceUnit const*> SourceUnit::referencedSourceUnits(bool _recurse, set<Sour _skipList.insert(sourceUnit); sourceUnits.insert(sourceUnit); if (_recurse) - { - set<SourceUnit const*> referencedSourceUnits = sourceUnit->referencedSourceUnits(true, _skipList); - sourceUnits.insert(referencedSourceUnits.begin(), referencedSourceUnits.end()); - } + sourceUnits += sourceUnit->referencedSourceUnits(true, _skipList); } } return sourceUnits; |