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/box3d-side.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/object/box3d-side.cpp') diff --git a/src/object/box3d-side.cpp b/src/object/box3d-side.cpp index b6b9bbbf7..b085b88ae 100644 --- a/src/object/box3d-side.cpp +++ b/src/object/box3d-side.cpp @@ -60,7 +60,7 @@ Inkscape::XML::Node* Box3DSide::write(Inkscape::XML::Document *xml_doc, Inkscape //Nulls might be possible if this called iteratively if ( !curve ) { - return NULL; + return nullptr; } char *d = sp_svg_write_path ( curve->get_pathvector() ); @@ -121,7 +121,7 @@ void Box3DSide::update(SPCtx* ctx, guint flags) { /* Create a new Box3DSide and append it to the parent box */ Box3DSide * Box3DSide::createBox3DSide(SPBox3D *box) { - Box3DSide *box3d_side = 0; + Box3DSide *box3d_side = nullptr; Inkscape::XML::Document *xml_doc = box->document->rdoc; Inkscape::XML::Node *repr_side = xml_doc->createElement("svg:path"); repr_side->setAttribute("sodipodi:type", "inkscape:box3dside"); @@ -247,8 +247,8 @@ box3d_side_compute_corner_ids(Box3DSide *side, unsigned int corners[4]) { Persp3D * box3d_side_perspective(Box3DSide *side) { - SPBox3D *box = side ? dynamic_cast(side->parent) : NULL; - return box ? box->persp_ref->getObject() : NULL; + SPBox3D *box = side ? dynamic_cast(side->parent) : nullptr; + return box ? box->persp_ref->getObject() : nullptr; } Inkscape::XML::Node *box3d_side_convert_to_path(Box3DSide *side) { -- cgit v1.2.3