summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/zoom-tool.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/ui/tools/zoom-tool.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/ui/tools/zoom-tool.cpp')
-rw-r--r--src/ui/tools/zoom-tool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/tools/zoom-tool.cpp b/src/ui/tools/zoom-tool.cpp
index 6f7fca242..dcd6eac80 100644
--- a/src/ui/tools/zoom-tool.cpp
+++ b/src/ui/tools/zoom-tool.cpp
@@ -37,7 +37,7 @@ const std::string ZoomTool::prefsPath = "/tools/zoom";
ZoomTool::ZoomTool()
: ToolBase(cursor_zoom_xpm)
- , grabbed(NULL)
+ , grabbed(nullptr)
, escaped(false)
{
}
@@ -50,7 +50,7 @@ void ZoomTool::finish() {
if (this->grabbed) {
sp_canvas_item_ungrab(this->grabbed, GDK_CURRENT_TIME);
- this->grabbed = NULL;
+ this->grabbed = nullptr;
}
ToolBase::finish();
@@ -108,7 +108,7 @@ bool ZoomTool::root_handler(GdkEvent* event) {
GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK,
- NULL, event->button.time);
+ nullptr, event->button.time);
this->grabbed = SP_CANVAS_ITEM(desktop->acetate);
break;
@@ -160,7 +160,7 @@ bool ZoomTool::root_handler(GdkEvent* event) {
if (this->grabbed) {
sp_canvas_item_ungrab(this->grabbed, event->button.time);
- this->grabbed = NULL;
+ this->grabbed = nullptr;
}
xp = yp = 0;