From 36ba43d6ea38062b17f7e63ef659962bfc51c64d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 6 Jun 2017 23:34:34 +0300 Subject: Fix clang-tidy check readability-implicit-bool-cast. --- src/configuration.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configuration.h') diff --git a/src/configuration.h b/src/configuration.h index f1eda72d6..2556ac283 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -301,11 +301,11 @@ class Configuration final : public ConfigurationObject inline void setValue(const std::string &key, const char *const value) - { if (value) setValue(key, std::string(value)); } + { if (value != nullptr) setValue(key, std::string(value)); } inline void setSilent(const std::string &key, const char *const value) - { if (value) setSilent(key, std::string(value)); } + { if (value != nullptr) setSilent(key, std::string(value)); } inline void setValue(const std::string &key, const float value) -- cgit v1.2.3-60-g2f50