Browse Source

common/logging/filter: Make constructor explicit

Implicit conversions aren't desirable here.
nce_cpp
Lioncash 7 years ago
parent
commit
ed8b4ac2b4
  1. 2
      src/common/logging/filter.h

2
src/common/logging/filter.h

@ -19,7 +19,7 @@ namespace Log {
class Filter {
public:
/// Initializes the filter with all classes having `default_level` as the minimum level.
Filter(Level default_level = Level::Info);
explicit Filter(Level default_level = Level::Info);
/// Resets the filter so that all classes have `level` as the minimum displayed level.
void ResetAll(Level level);

Loading…
Cancel
Save