diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-15 10:46:15 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2018-06-18 12:27:01 +0000 |
| commit | f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 (patch) | |
| tree | 7c6044fd3a17a2665841959dac9b3b2110b27924 /src/helper/action-context.cpp | |
| parent | Run clang-tidy’s modernize-use-override pass. (diff) | |
| download | inkscape-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/helper/action-context.cpp')
| -rw-r--r-- | src/helper/action-context.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helper/action-context.cpp b/src/helper/action-context.cpp index 1ea12776b..e9299f7eb 100644 --- a/src/helper/action-context.cpp +++ b/src/helper/action-context.cpp @@ -18,19 +18,19 @@ namespace Inkscape { ActionContext::ActionContext() - : _selection(NULL) - , _view(NULL) + : _selection(nullptr) + , _view(nullptr) { } ActionContext::ActionContext(Selection *selection) : _selection(selection) - , _view(NULL) + , _view(nullptr) { } ActionContext::ActionContext(UI::View::View *view) - : _selection(NULL) + : _selection(nullptr) , _view(view) { SPDesktop *desktop = static_cast<SPDesktop *>(view); @@ -41,8 +41,8 @@ ActionContext::ActionContext(UI::View::View *view) SPDocument *ActionContext::getDocument() const { - if (_selection == NULL) { - return NULL; + if (_selection == nullptr) { + return nullptr; } // Should be the same as the view's document, if view is non-NULL |
