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/ui/shape-editor.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/ui/shape-editor.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/shape-editor.cpp b/src/ui/shape-editor.cpp index b40bec86f..4c11a8b52 100644 --- a/src/ui/shape-editor.cpp +++ b/src/ui/shape-editor.cpp @@ -53,12 +53,12 @@ void ShapeEditor::unset_item(bool keep_knotholder) { if (old_repr && old_repr == knotholder_listener_attached_for) { sp_repr_remove_listener_by_data(old_repr, this); Inkscape::GC::release(old_repr); - knotholder_listener_attached_for = NULL; + knotholder_listener_attached_for = nullptr; } if (!keep_knotholder) { delete this->knotholder; - this->knotholder = NULL; + this->knotholder = nullptr; } } if (this->lpeknotholder) { @@ -66,18 +66,18 @@ void ShapeEditor::unset_item(bool keep_knotholder) { if (old_repr && old_repr == lpeknotholder_listener_attached_for) { sp_repr_remove_listener_by_data(old_repr, this); Inkscape::GC::release(old_repr); - lpeknotholder_listener_attached_for = NULL; + lpeknotholder_listener_attached_for = nullptr; } if (!keep_knotholder) { delete this->lpeknotholder; - this->lpeknotholder = NULL; + this->lpeknotholder = nullptr; } } } bool ShapeEditor::has_knotholder() { - return this->knotholder != NULL || this->lpeknotholder != NULL; + return this->knotholder != nullptr || this->lpeknotholder != nullptr; } void ShapeEditor::update_knotholder() { @@ -121,11 +121,11 @@ void ShapeEditor::event_attr_changed(Inkscape::XML::Node * node, gchar const *na } static Inkscape::XML::NodeEventVector shapeeditor_repr_events = { - NULL, /* child_added */ - NULL, /* child_removed */ + nullptr, /* child_added */ + nullptr, /* child_removed */ ShapeEditor::event_attr_changed, - NULL, /* content_changed */ - NULL /* order_changed */ + nullptr, /* content_changed */ + nullptr /* order_changed */ }; |
