summaryrefslogtreecommitdiffstats
path: root/src/object/box3d-side.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/object/box3d-side.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/object/box3d-side.cpp')
-rw-r--r--src/object/box3d-side.cpp8
1 files changed, 4 insertions, 4 deletions
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<SPBox3D *>(side->parent) : NULL;
- return box ? box->persp_ref->getObject() : NULL;
+ SPBox3D *box = side ? dynamic_cast<SPBox3D *>(side->parent) : nullptr;
+ return box ? box->persp_ref->getObject() : nullptr;
}
Inkscape::XML::Node *box3d_side_convert_to_path(Box3DSide *side) {