aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-21 22:42:17 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-22 17:51:46 +0800
commit2a5772cff7d03de0d02c5358a6a6755e8f802697 (patch)
treea617c912a51e289b00f2c71f2754d15d451c3bb4 /libsolidity/interface
parent3cf2426e1a2975a60176cb46040fccfbc182d771 (diff)
downloaddexon-solidity-2a5772cff7d03de0d02c5358a6a6755e8f802697.tar.gz
dexon-solidity-2a5772cff7d03de0d02c5358a6a6755e8f802697.tar.zst
dexon-solidity-2a5772cff7d03de0d02c5358a6a6755e8f802697.zip
Mark appropriate constructors explicit
Diffstat (limited to 'libsolidity/interface')
-rw-r--r--libsolidity/interface/ErrorReporter.h2
-rw-r--r--libsolidity/interface/StandardCompiler.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/interface/ErrorReporter.h b/libsolidity/interface/ErrorReporter.h
index 12f4e8df..241d6b43 100644
--- a/libsolidity/interface/ErrorReporter.h
+++ b/libsolidity/interface/ErrorReporter.h
@@ -36,7 +36,7 @@ class ErrorReporter
{
public:
- ErrorReporter(ErrorList& _errors):
+ explicit ErrorReporter(ErrorList& _errors):
m_errorList(_errors) { }
ErrorReporter& operator=(ErrorReporter const& _errorReporter);
diff --git a/libsolidity/interface/StandardCompiler.h b/libsolidity/interface/StandardCompiler.h
index dfaf88cd..d9787a40 100644
--- a/libsolidity/interface/StandardCompiler.h
+++ b/libsolidity/interface/StandardCompiler.h
@@ -40,7 +40,7 @@ public:
/// Creates a new StandardCompiler.
/// @param _readFile callback to used to read files for import statements. Must return
/// and must not emit exceptions.
- StandardCompiler(ReadFile::Callback const& _readFile = ReadFile::Callback())
+ explicit StandardCompiler(ReadFile::Callback const& _readFile = ReadFile::Callback())
: m_compilerStack(_readFile), m_readFile(_readFile)
{
}