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/live_effects/lpeobject-reference.cpp | |
| 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 '')
| -rw-r--r-- | src/live_effects/lpeobject-reference.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/live_effects/lpeobject-reference.cpp b/src/live_effects/lpeobject-reference.cpp index edede5ca1..14472d001 100644 --- a/src/live_effects/lpeobject-reference.cpp +++ b/src/live_effects/lpeobject-reference.cpp @@ -25,12 +25,12 @@ static void lpeobjectreference_source_modified(SPObject *iSource, guint flags, L LPEObjectReference::LPEObjectReference(SPObject* i_owner) : URIReference(i_owner) { owner=i_owner; - lpeobject_href = NULL; - lpeobject_repr = NULL; - lpeobject = NULL; + lpeobject_href = nullptr; + lpeobject_repr = nullptr; + lpeobject = nullptr; _changed_connection = changedSignal().connect(sigc::bind(sigc::ptr_fun(lpeobjectreference_href_changed), this)); // listening to myself, this should be virtual instead - user_unlink = NULL; + user_unlink = nullptr; } LPEObjectReference::~LPEObjectReference(void) @@ -80,7 +80,7 @@ LPEObjectReference::unlink(void) { if (lpeobject_href) { g_free(lpeobject_href); - lpeobject_href = NULL; + lpeobject_href = nullptr; } detach(); } @@ -88,7 +88,7 @@ LPEObjectReference::unlink(void) void LPEObjectReference::start_listening(LivePathEffectObject* to) { - if ( to == NULL ) { + if ( to == nullptr ) { return; } lpeobject = to; @@ -102,8 +102,8 @@ LPEObjectReference::quit_listening(void) { _modified_connection.disconnect(); _delete_connection.disconnect(); - lpeobject_repr = NULL; - lpeobject = NULL; + lpeobject_repr = nullptr; + lpeobject = nullptr; } static void |
