Przeglądaj źródła

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

Lioncash 8 lat temu
rodzic
commit
2949d9552c
1 zmienionych plików z 1 dodań i 1 usunięć
  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