Explorar o código

common/logging/filter: Replace C-style case with C++ static_cast

Lioncash %!s(int64=8) %!d(string=hai) anos
pai
achega
2949d9552c
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

@@ -49,6 +49,6 @@ public:
     bool IsDebug() const;
 
 private:
-    std::array<Level, (size_t)Class::Count> class_levels;
+    std::array<Level, static_cast<size_t>(Class::Count)> class_levels;
 };
 } // namespace Log