mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Mark appropriate constructors explicit
This commit is contained in:
@@ -36,7 +36,7 @@ class ErrorReporter
|
||||
{
|
||||
public:
|
||||
|
||||
ErrorReporter(ErrorList& _errors):
|
||||
explicit ErrorReporter(ErrorList& _errors):
|
||||
m_errorList(_errors) { }
|
||||
|
||||
ErrorReporter& operator=(ErrorReporter const& _errorReporter);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user