From 978f3a3282f790f409c682368a4d54072d7d8968 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 4 Sep 2018 10:43:29 -0400 Subject: common/logging/filter: Make constructor explicit Implicit conversions aren't desirable here. --- src/common/logging/filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logging/filter.h b/src/common/logging/filter.h index d5ffc5a58..f13197fc9 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); -- cgit v1.2.3