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/gui/models/colormodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/models/colormodel.cpp') diff --git a/src/gui/models/colormodel.cpp b/src/gui/models/colormodel.cpp index 76a7da8fa..3bbded2e2 100644 --- a/src/gui/models/colormodel.cpp +++ b/src/gui/models/colormodel.cpp @@ -71,7 +71,7 @@ void ColorModel::add(const std::string &name, const Color *const color1, ColorModel *ColorModel::createDefault(const Widget2 *const widget) { ColorModel *const model = new ColorModel; - if (!widget) + if (widget == nullptr) return model; // TRANSLATORS: color name addColor(_("black"), BLACK); -- cgit v1.2.3-60-g2f50