mark single-parameter constructors as explicit
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() {};
|
||||
|
||||
Reference in New Issue
Block a user