remove unused member data and fix initializing order.
This commit is contained in:
parent
af9b0977f6
commit
213d4932a6
@ -49,20 +49,21 @@ namespace Opm
|
||||
public:
|
||||
/// Constructor controlling formatting to be applied.
|
||||
SimpleMessageFormatter(const bool use_prefix, const bool use_color_coding)
|
||||
: use_prefix_(use_prefix),
|
||||
use_color_coding_(use_color_coding)
|
||||
: use_color_coding_(use_color_coding)
|
||||
{
|
||||
if (use_prefix_) {
|
||||
if (use_prefix) {
|
||||
prefix_flag_ = Log::DefaultMessageTypes;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
SimpleMessageFormatter(const int64_t prefix_flag, const bool use_color_coding)
|
||||
: prefix_flag_(prefix_flag),
|
||||
use_color_coding_(use_color_coding)
|
||||
: use_color_coding_(use_color_coding),
|
||||
prefix_flag_(prefix_flag)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
SimpleMessageFormatter(const bool use_color_coding)
|
||||
: use_color_coding_(use_color_coding)
|
||||
{
|
||||
@ -84,7 +85,6 @@ namespace Opm
|
||||
return msg;
|
||||
}
|
||||
private:
|
||||
bool use_prefix_ = false;
|
||||
bool use_color_coding_ = false;
|
||||
int64_t prefix_flag_ = 0;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user