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-hatch-path.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-hatch-path.cpp')
| -rw-r--r-- | src/object/sp-hatch-path.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |
