aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis/StaticAnalyzer.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-02 20:25:37 +0800
committerchriseth <chris@ethereum.org>2017-05-03 17:26:21 +0800
commite0266b79f3709eb6314e883938bb969ba106beaa (patch)
tree162e72232dd647a4485b8f14c0303960b88e0f9f /libsolidity/analysis/StaticAnalyzer.h
parenta6faa5acf324a127aad11b354e48d7bb2bcf0fbc (diff)
downloaddexon-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.h3
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;
};
}