diff options
author | chriseth <chris@ethereum.org> | 2017-05-02 20:25:37 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-05-03 17:26:21 +0800 |
commit | e0266b79f3709eb6314e883938bb969ba106beaa (patch) | |
tree | 162e72232dd647a4485b8f14c0303960b88e0f9f /libsolidity/analysis/StaticAnalyzer.h | |
parent | a6faa5acf324a127aad11b354e48d7bb2bcf0fbc (diff) | |
download | dexon-solidity-e0266b79f3709eb6314e883938bb969ba106beaa.tar.gz dexon-solidity-e0266b79f3709eb6314e883938bb969ba106beaa.tar.zst dexon-solidity-e0266b79f3709eb6314e883938bb969ba106beaa.zip |
Refactor: Combine bool and function pointer.
Diffstat (limited to 'libsolidity/analysis/StaticAnalyzer.h')
-rw-r--r-- | libsolidity/analysis/StaticAnalyzer.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libsolidity/analysis/StaticAnalyzer.h b/libsolidity/analysis/StaticAnalyzer.h index c1ff6b24..cf2e2175 100644 --- a/libsolidity/analysis/StaticAnalyzer.h +++ b/libsolidity/analysis/StaticAnalyzer.h @@ -76,8 +76,7 @@ private: std::map<VariableDeclaration const*, int> m_localVarUseCount; - const FunctionDefinition *m_currentFunction; - bool m_inFunction = false; + FunctionDefinition const* m_currentFunction = nullptr; }; } |