mark single-parameter constructors as explicit

This commit is contained in:
Arne Morten Kvarving
2017-06-08 16:30:09 +02:00
parent 89b84ccde4
commit b7302a5ace
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ namespace Opm {
class CounterLog : public LogBackend
{
public:
CounterLog(int64_t messageMask);
explicit CounterLog(int64_t messageMask);
CounterLog();
size_t numMessages(int64_t messageType) const;

View File

@@ -64,7 +64,7 @@ namespace Opm
}
SimpleMessageFormatter(const bool use_color_coding)
explicit SimpleMessageFormatter(const bool use_color_coding)
: use_color_coding_(use_color_coding)
{
prefix_flag_ = Log::MessageType::Warning + Log::MessageType::Error

View File

@@ -39,8 +39,8 @@ public:
static const int64_t StartTimer = 4096;
static const int64_t StopTimer = 8192;
TimerLog(const std::string& logFile);
TimerLog(std::ostream& os);
explicit TimerLog(const std::string& logFile);
explicit TimerLog(std::ostream& os);
void clear();
~TimerLog() {};