summaryrefslogtreecommitdiffstats
path: root/src/common/logging/filter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logging/filter.h')
-rw-r--r--src/common/logging/filter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/logging/filter.h b/src/common/logging/filter.h
index d5ffc5a58..773df6f2c 100644
--- a/src/common/logging/filter.h
+++ b/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);
@@ -49,6 +49,6 @@ public:
bool IsDebug() const;
private:
- std::array<Level, (size_t)Class::Count> class_levels;
+ std::array<Level, static_cast<std::size_t>(Class::Count)> class_levels;
};
} // namespace Log