diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 10:46:15 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 (patch) | |
| tree | 7c6044fd3a17a2665841959dac9b3b2110b27924 /src/extension/effect.h | |
| parent | Run clang-tidy’s modernize-use-override pass. (diff) | |
| download | inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.tar.gz inkscape-f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43.zip | |
Run clang-tidy’s modernize-use-nullptr pass.
This replaces all NULL or 0 with nullptr when assigned to or returned as
a pointer.
Diffstat (limited to 'src/extension/effect.h')
| -rw-r--r-- | src/extension/effect.h | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |
