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/namesmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/models/namesmodel.cpp') diff --git a/src/gui/models/namesmodel.cpp b/src/gui/models/namesmodel.cpp index 9c90ff4c0..5a351f471 100644 --- a/src/gui/models/namesmodel.cpp +++ b/src/gui/models/namesmodel.cpp @@ -49,7 +49,7 @@ std::string NamesModel::getElementAt(int i) void NamesModel::fillFromArray(const char *const *const arr, const std::size_t sz) { - if (!arr) + if (arr == nullptr) return; for (size_t f = 0; f < sz; f ++) mNames.push_back(gettext(arr[f])); -- cgit v1.2.3-60-g2f50