From f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 12:46:15 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-nullptr=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer. --- src/extension/effect.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/extension/effect.h') diff --git a/src/extension/effect.h b/src/extension/effect.h index a0f478978..5481d420a 100644 --- a/src/extension/effect.h +++ b/src/extension/effect.h @@ -70,10 +70,10 @@ class Effect : public Extension { Verb(id, _(name), _(tip), image, _("Extensions")), _effect(effect), _showPrefs(showPrefs), - _elip_name(NULL) { + _elip_name(nullptr) { /* No clue why, but this is required */ this->set_default_sensitive(true); - if (_showPrefs && effect != NULL && effect->param_visible_count() != 0) { + if (_showPrefs && effect != nullptr && effect->param_visible_count() != 0) { _elip_name = g_strdup_printf("%s...", _(name)); set_name(_elip_name); } @@ -81,7 +81,7 @@ class Effect : public Extension { /** \brief Destructor */ ~EffectVerb() override { - if (_elip_name != NULL) { + if (_elip_name != nullptr) { g_free(_elip_name); } } -- cgit v1.2.3