summaryrefslogtreecommitdiffstats
path: root/src/extension/execution-env.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/extension/execution-env.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/extension/execution-env.cpp')
-rw-r--r--src/extension/execution-env.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp
index 0c979660d..0e0688f44 100644
--- a/src/extension/execution-env.cpp
+++ b/src/extension/execution-env.cpp
@@ -46,8 +46,8 @@ namespace Extension {
*/
ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Implementation::ImplementationDocumentCache * docCache, bool show_working, bool show_errors) :
_state(ExecutionEnv::INIT),
- _visibleDialog(NULL),
- _mainloop(NULL),
+ _visibleDialog(nullptr),
+ _mainloop(nullptr),
_doc(doc),
_docCache(docCache),
_effect(effect),
@@ -64,10 +64,10 @@ ExecutionEnv::ExecutionEnv (Effect * effect, Inkscape::UI::View::View * doc, Imp
Destroys the dialog if created and the document cache.
*/
ExecutionEnv::~ExecutionEnv (void) {
- if (_visibleDialog != NULL) {
+ if (_visibleDialog != nullptr) {
_visibleDialog->hide();
delete _visibleDialog;
- _visibleDialog = NULL;
+ _visibleDialog = nullptr;
}
killDocCache();
return;
@@ -80,7 +80,7 @@ ExecutionEnv::~ExecutionEnv (void) {
*/
void
ExecutionEnv::genDocCache (void) {
- if (_docCache == NULL) {
+ if (_docCache == nullptr) {
// printf("Gen Doc Cache\n");
_docCache = _effect->get_imp()->newDocCache(_effect, _doc);
}
@@ -93,10 +93,10 @@ ExecutionEnv::genDocCache (void) {
*/
void
ExecutionEnv::killDocCache (void) {
- if (_docCache != NULL) {
+ if (_docCache != nullptr) {
// printf("Killed Doc Cache\n");
delete _docCache;
- _docCache = NULL;
+ _docCache = nullptr;
}
return;
}
@@ -108,10 +108,10 @@ ExecutionEnv::killDocCache (void) {
*/
void
ExecutionEnv::createWorkingDialog (void) {
- if (_visibleDialog != NULL) {
+ if (_visibleDialog != nullptr) {
_visibleDialog->hide();
delete _visibleDialog;
- _visibleDialog = NULL;
+ _visibleDialog = nullptr;
}
SPDesktop *desktop = (SPDesktop *)_doc;