summaryrefslogtreecommitdiffstats
path: root/src/display/sp-canvas-util.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-15 10:46:15 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-18 12:27:01 +0000
commitf4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 (patch)
tree7c6044fd3a17a2665841959dac9b3b2110b27924 /src/display/sp-canvas-util.cpp
parentRun clang-tidy’s modernize-use-override pass. (diff)
downloadinkscape-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/sp-canvas-util.cpp')
-rw-r--r--src/display/sp-canvas-util.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display/sp-canvas-util.cpp b/src/display/sp-canvas-util.cpp
index 25b70824b..e6c6ea839 100644
--- a/src/display/sp-canvas-util.cpp
+++ b/src/display/sp-canvas-util.cpp
@@ -42,7 +42,7 @@ void sp_canvas_prepare_buffer(SPCanvasBuf *)
Geom::Affine sp_canvas_item_i2p_affine (SPCanvasItem * item)
{
- g_assert (item != NULL); /* this may be overly zealous - it is
+ g_assert (item != nullptr); /* this may be overly zealous - it is
* plausible that this gets called
* with item == 0. */
@@ -51,22 +51,22 @@ Geom::Affine sp_canvas_item_i2p_affine (SPCanvasItem * item)
Geom::Affine sp_canvas_item_i2i_affine (SPCanvasItem * from, SPCanvasItem * to)
{
- g_assert (from != NULL);
- g_assert (to != NULL);
+ g_assert (from != nullptr);
+ g_assert (to != nullptr);
return sp_canvas_item_i2w_affine(from) * sp_canvas_item_i2w_affine(to).inverse();
}
void sp_canvas_item_set_i2w_affine (SPCanvasItem * item, Geom::Affine const &i2w)
{
- g_assert (item != NULL);
+ g_assert (item != nullptr);
sp_canvas_item_affine_absolute(item, i2w * sp_canvas_item_i2w_affine(item->parent).inverse());
}
void sp_canvas_item_move_to_z (SPCanvasItem * item, gint z)
{
- g_assert (item != NULL);
+ g_assert (item != nullptr);
if (z == 0)
return sp_canvas_item_lower_to_bottom(item);