From 787fff9a64c888c021f282887b57be79bf8f18dc Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 4 Sep 2018 10:43:29 -0400 Subject: [PATCH] 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 e887c32a12..ccb021050d 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);