diff options
| author | bunnei <bunneidev@gmail.com> | 2018-09-04 12:18:00 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-04 12:18:00 -0400 |
| commit | dda4b5e89ee428d4e872246459db308b2701eef1 (patch) | |
| tree | 2bb15d02d5da24102523bd0567d56d3d609b5cf6 /src/common/logging/filter.h | |
| parent | 9a07e9f8057323dbec477a8e90e626bf80fc1a61 (diff) | |
| parent | 6ef84f1c4c6ca66ec28be210ef14913187af4424 (diff) | |
Merge pull request #1238 from lioncash/explicit
common/logging: Minor changes
Diffstat (limited to 'src/common/logging/filter.h')
| -rw-r--r-- | src/common/logging/filter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/logging/filter.h b/src/common/logging/filter.h index d5ffc5a58..f7e3b87c9 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<size_t>(Class::Count)> class_levels; }; } // namespace Log |
