summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/dialog.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/dialog/dialog.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/dialog/dialog.cpp')
-rw-r--r--src/ui/dialog/dialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/dialog/dialog.cpp b/src/ui/dialog/dialog.cpp
index f7e9a1bed..0cee7f1d6 100644
--- a/src/ui/dialog/dialog.cpp
+++ b/src/ui/dialog/dialog.cpp
@@ -57,9 +57,9 @@ Dialog::Dialog(Behavior::BehaviorFactory behavior_factory, const char *prefs_pat
_verb_num(verb_num),
_title(),
_apply_label(apply_label),
- _desktop(NULL),
+ _desktop(nullptr),
_is_active_desktop(true),
- _behavior(0)
+ _behavior(nullptr)
{
gchar title[500];
@@ -86,7 +86,7 @@ Dialog::~Dialog()
{
save_geometry();
delete _behavior;
- _behavior = 0;
+ _behavior = nullptr;
}
@@ -205,7 +205,7 @@ Dialog::save_status(int visible, int state, int placement)
{
// Only save dialog status for dialogs on the "last document"
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
- if (desktop != NULL || !_is_active_desktop ) {
+ if (desktop != nullptr || !_is_active_desktop ) {
return;
}
@@ -284,7 +284,7 @@ void Dialog::_apply()
void Dialog::_close()
{
_behavior->hide();
- _onDeleteEvent(NULL);
+ _onDeleteEvent(nullptr);
}
void Dialog::_defocus()