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/langlistmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/models/langlistmodel.h') diff --git a/src/gui/models/langlistmodel.h b/src/gui/models/langlistmodel.h index 839a836e7..f8c67ad30 100644 --- a/src/gui/models/langlistmodel.h +++ b/src/gui/models/langlistmodel.h @@ -116,7 +116,7 @@ class LangListModel final : public ExtendedListModel for (int f = 0; f < langs_count; f ++) { Image *const img = mIcons[f]; - if (img) + if (img != nullptr) img->decRef(); } } -- cgit v1.2.3-70-g09d2