소스 검색

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

Lioncash 8 년 전
부모
커밋
2949d9552c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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