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/object/sp-clippath.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 'src/object/sp-clippath.cpp')
| -rw-r--r-- | src/object/sp-clippath.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/object/sp-clippath.cpp b/src/object/sp-clippath.cpp index 4afbf7e51..3ef849c14 100644 --- a/src/object/sp-clippath.cpp +++ b/src/object/sp-clippath.cpp @@ -45,7 +45,7 @@ SPClipPath::SPClipPath() : SPObjectGroup() { this->clipPathUnits_set = FALSE; this->clipPathUnits = SP_CONTENT_UNITS_USERSPACEONUSE; - this->display = NULL; + this->display = nullptr; } SPClipPath::~SPClipPath() { @@ -111,7 +111,7 @@ void SPClipPath::child_added(Inkscape::XML::Node* child, Inkscape::XML::Node* re SPObject *ochild = this->document->getObjectByRepr(child); if (SP_IS_ITEM(ochild)) { - for (SPClipPathView *v = this->display; v != NULL; v = v->next) { + for (SPClipPathView *v = this->display; v != nullptr; v = v->next) { Inkscape::DrawingItem *ac = SP_ITEM(ochild)->invoke_show(v->arenaitem->drawing(), v->key, SP_ITEM_REFERENCE_FLAGS); if (ac) { @@ -142,7 +142,7 @@ void SPClipPath::update(SPCtx* ctx, unsigned int flags) { sp_object_unref(child); } - for (SPClipPathView *v = this->display; v != NULL; v = v->next) { + for (SPClipPathView *v = this->display; v != nullptr; v = v->next) { Inkscape::DrawingGroup *g = dynamic_cast<Inkscape::DrawingGroup *>(v->arenaitem); if (this->clipPathUnits == SP_CONTENT_UNITS_OBJECTBOUNDINGBOX && v->bbox) { @@ -218,7 +218,7 @@ void SPClipPath::hide(unsigned int key) { SP_ITEM(&child)->invoke_hide(key); } } - for (SPClipPathView *v = display; v != NULL; v = v->next) { + for (SPClipPathView *v = display; v != nullptr; v = v->next) { if (v->key == key) { /* We simply unref and let item to manage this in handler */ display = sp_clippath_view_list_remove(display, v); @@ -228,7 +228,7 @@ void SPClipPath::hide(unsigned int key) { } void SPClipPath::setBBox(unsigned int key, Geom::OptRect const &bbox) { - for (SPClipPathView *v = display; v != NULL; v = v->next) { + for (SPClipPathView *v = display; v != nullptr; v = v->next) { if (v->key == key) { v->bbox = bbox; break; |
