Explorar o código

common/logging/filter: Make constructor explicit

Implicit conversions aren't desirable here.
Lioncash %!s(int64=8) %!d(string=hai) anos
pai
achega
978f3a3282
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/logging/filter.h

+ 1 - 1
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);