summaryrefslogtreecommitdiffstats
path: root/src/display/guideline.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/guideline.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/guideline.cpp')
-rw-r--r--src/display/guideline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display/guideline.cpp b/src/display/guideline.cpp
index cde10f6c2..8091f8369 100644
--- a/src/display/guideline.cpp
+++ b/src/display/guideline.cpp
@@ -53,13 +53,13 @@ static void sp_guideline_init(SPGuideLine *gl)
gl->point_on_line = Geom::Point(0,0);
gl->sensitive = 0;
- gl->origin = NULL;
- gl->label = NULL;
+ gl->origin = nullptr;
+ gl->label = nullptr;
}
static void sp_guideline_destroy(SPCanvasItem *object)
{
- g_return_if_fail (object != NULL);
+ g_return_if_fail (object != nullptr);
g_return_if_fail (SP_IS_GUIDELINE (object));
SPGuideLine *gl = SP_GUIDELINE(object);
@@ -200,7 +200,7 @@ static double sp_guideline_point(SPCanvasItem *item, Geom::Point p, SPCanvasItem
SPCanvasItem *sp_guideline_new(SPCanvasGroup *parent, char* label, Geom::Point point_on_line, Geom::Point normal)
{
- SPCanvasItem *item = sp_canvas_item_new(parent, SP_TYPE_GUIDELINE, NULL);
+ SPCanvasItem *item = sp_canvas_item_new(parent, SP_TYPE_GUIDELINE, nullptr);
SPGuideLine *gl = SP_GUIDELINE(item);
normal.normalize();