diff options
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 |
