diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-18 21:44:53 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-18 21:44:53 +0800 |
commit | c40cbed9fb4b793ab27b646f92dafee2abfb01f6 (patch) | |
tree | 8b90b547904144fa58ef0c1d634c99ed973c7953 | |
parent | 33ac1f29b52734d3761189182094eeec9f52b4ac (diff) | |
download | dexon-solidity-c40cbed9fb4b793ab27b646f92dafee2abfb01f6.tar dexon-solidity-c40cbed9fb4b793ab27b646f92dafee2abfb01f6.tar.gz dexon-solidity-c40cbed9fb4b793ab27b646f92dafee2abfb01f6.tar.bz2 dexon-solidity-c40cbed9fb4b793ab27b646f92dafee2abfb01f6.tar.lz dexon-solidity-c40cbed9fb4b793ab27b646f92dafee2abfb01f6.tar.xz dexon-solidity-c40cbed9fb4b793ab27b646f92dafee2abfb01f6.tar.zst dexon-solidity-c40cbed9fb4b793ab27b646f92dafee2abfb01f6.zip |
Mark const variables
-rw-r--r-- | libsolidity/interface/StandardCompiler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/interface/StandardCompiler.cpp b/libsolidity/interface/StandardCompiler.cpp index 06bf9e52..df1afdc5 100644 --- a/libsolidity/interface/StandardCompiler.cpp +++ b/libsolidity/interface/StandardCompiler.cpp @@ -247,8 +247,8 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input) m_compilerStack.setRemappings(remappings); Json::Value optimizerSettings = settings.get("optimizer", Json::Value()); - bool optimize = optimizerSettings.get("enabled", Json::Value(false)).asBool(); - unsigned optimizeRuns = optimizerSettings.get("runs", Json::Value(200u)).asUInt(); + bool const optimize = optimizerSettings.get("enabled", Json::Value(false)).asBool(); + unsigned const optimizeRuns = optimizerSettings.get("runs", Json::Value(200u)).asUInt(); map<string, h160> libraries; Json::Value jsonLibraries = settings.get("libraries", Json::Value()); @@ -352,8 +352,8 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input) )); } - bool analysisSuccess = m_compilerStack.state() >= CompilerStack::State::AnalysisSuccessful; - bool compilationSuccess = m_compilerStack.state() == CompilerStack::State::CompilationSuccessful; + bool const analysisSuccess = m_compilerStack.state() >= CompilerStack::State::AnalysisSuccessful; + bool const compilationSuccess = m_compilerStack.state() == CompilerStack::State::CompilationSuccessful; /// Inconsistent state - stop here to receive error reports from users if (!compilationSuccess && (errors.size() == 0)) |