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/display/sp-canvas-util.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/display/sp-canvas-util.cpp') 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); -- cgit v1.2.3