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/attribute-rel-css.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 '')
| -rw-r--r-- | src/attribute-rel-css.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/attribute-rel-css.cpp b/src/attribute-rel-css.cpp index f8483d538..d8c90b573 100644 --- a/src/attribute-rel-css.cpp +++ b/src/attribute-rel-css.cpp @@ -25,7 +25,7 @@ #include "path-prefix.h" #include "preferences.h" -SPAttributeRelCSS * SPAttributeRelCSS::instance = NULL; +SPAttributeRelCSS * SPAttributeRelCSS::instance = nullptr; bool SPAttributeRelCSS::foundFileProp = false; bool SPAttributeRelCSS::foundFileDefault = false; @@ -35,7 +35,7 @@ bool SPAttributeRelCSS::foundFileDefault = false; */ bool SPAttributeRelCSS::findIfValid(Glib::ustring property, Glib::ustring element) { - if (SPAttributeRelCSS::instance == NULL) { + if (SPAttributeRelCSS::instance == nullptr) { SPAttributeRelCSS::instance = new SPAttributeRelCSS(); } @@ -75,7 +75,7 @@ bool SPAttributeRelCSS::findIfValid(Glib::ustring property, Glib::ustring elemen */ bool SPAttributeRelCSS::findIfDefault(Glib::ustring property, Glib::ustring value) { - if (SPAttributeRelCSS::instance == NULL) { + if (SPAttributeRelCSS::instance == nullptr) { SPAttributeRelCSS::instance = new SPAttributeRelCSS(); } @@ -94,7 +94,7 @@ bool SPAttributeRelCSS::findIfDefault(Glib::ustring property, Glib::ustring valu */ bool SPAttributeRelCSS::findIfInherit(Glib::ustring property) { - if (SPAttributeRelCSS::instance == NULL) { + if (SPAttributeRelCSS::instance == nullptr) { SPAttributeRelCSS::instance = new SPAttributeRelCSS(); } @@ -109,7 +109,7 @@ bool SPAttributeRelCSS::findIfInherit(Glib::ustring property) */ bool SPAttributeRelCSS::findIfProperty(Glib::ustring property) { - if (SPAttributeRelCSS::instance == NULL) { + if (SPAttributeRelCSS::instance == nullptr) { SPAttributeRelCSS::instance = new SPAttributeRelCSS(); } |
