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/display/drawing-group.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/display/drawing-group.cpp')
| -rw-r--r-- | src/display/drawing-group.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display/drawing-group.cpp b/src/display/drawing-group.cpp index 6abce34a2..22a6c42ed 100644 --- a/src/display/drawing-group.cpp +++ b/src/display/drawing-group.cpp @@ -18,7 +18,7 @@ namespace Inkscape { DrawingGroup::DrawingGroup(Drawing &drawing) : DrawingItem(drawing) - , _child_transform(NULL) + , _child_transform(nullptr) {} DrawingGroup::~DrawingGroup() @@ -54,7 +54,7 @@ DrawingGroup::setChildTransform(Geom::Affine const &new_trans) _markForRendering(); if (new_trans.isIdentity()) { delete _child_transform; // delete NULL; is safe - _child_transform = NULL; + _child_transform = nullptr; } else { _child_transform = new Geom::Affine(new_trans); } @@ -89,7 +89,7 @@ DrawingGroup::_updateItem(Geom::IntRect const &area, UpdateContext const &ctx, u unsigned DrawingGroup::_renderItem(DrawingContext &dc, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at) { - if (stop_at == NULL) { + if (stop_at == nullptr) { // normal rendering for (ChildrenList::iterator i = _children.begin(); i != _children.end(); ++i) { i->setAntialiasing(_antialias); @@ -131,7 +131,7 @@ DrawingGroup::_pickItem(Geom::Point const &p, double delta, unsigned flags) return _pick_children ? picked : this; } } - return NULL; + return nullptr; } bool @@ -142,7 +142,7 @@ DrawingGroup::_canClip() bool is_drawing_group(DrawingItem *item) { - return dynamic_cast<DrawingGroup *>(item) != NULL; + return dynamic_cast<DrawingGroup *>(item) != nullptr; } } // end namespace Inkscape |
