From f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 12:46:15 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-nullptr=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer. --- src/object/sp-hatch-path.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/object/sp-hatch-path.cpp') diff --git a/src/object/sp-hatch-path.cpp b/src/object/sp-hatch-path.cpp index 4497b6911..649fefe94 100644 --- a/src/object/sp-hatch-path.cpp +++ b/src/object/sp-hatch-path.cpp @@ -32,7 +32,7 @@ SPHatchPath::SPHatchPath() : offset(), _display(), - _curve(NULL), + _curve(nullptr), _continuous(false) { offset.unset(); @@ -74,7 +74,7 @@ void SPHatchPath::release() { for (ViewIterator iter = _display.begin(); iter != _display.end(); ++iter) { delete iter->arenaitem; - iter->arenaitem = NULL; + iter->arenaitem = nullptr; } SPObject::release(); @@ -94,7 +94,7 @@ void SPHatchPath::set(unsigned int key, const gchar* value) curve->unref(); } } else { - setCurve(NULL, true); + setCurve(nullptr, true); } requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); @@ -216,7 +216,7 @@ SPCurve *SPHatchPath::calculateRenderCurve(unsigned key) const } } g_assert_not_reached(); - return NULL; + return nullptr; } gdouble SPHatchPath::_repeatLength() const @@ -324,7 +324,7 @@ SPHatchPath::View::View(Inkscape::DrawingShape *arenaitem, int key) SPHatchPath::View::~View() { // remember, do not delete arenaitem here - arenaitem = NULL; + arenaitem = nullptr; } -- cgit v1.2.3