Mark appropriate constructors explicit

This commit is contained in:
Alex Beregszaszi
2017-08-22 10:51:46 +01:00
parent 3cf2426e1a
commit 2a5772cff7
15 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class ErrorReporter
{
public:
ErrorReporter(ErrorList& _errors):
explicit ErrorReporter(ErrorList& _errors):
m_errorList(_errors) { }
ErrorReporter& operator=(ErrorReporter const& _errorReporter);
+1 -1
View File
@@ -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)
{
}