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/object/sp-missing-glyph.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/object/sp-missing-glyph.cpp')
| -rw-r--r-- | src/object/sp-missing-glyph.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/object/sp-missing-glyph.cpp b/src/object/sp-missing-glyph.cpp index f441b66d2..7b10b4e9a 100644 --- a/src/object/sp-missing-glyph.cpp +++ b/src/object/sp-missing-glyph.cpp @@ -21,7 +21,7 @@ SPMissingGlyph::SPMissingGlyph() : SPObject() { //TODO: correct these values: - this->d = NULL; + this->d = nullptr; this->horiz_adv_x = 0; this->vert_origin_x = 0; this->vert_origin_y = 0; @@ -59,7 +59,7 @@ void SPMissingGlyph::set(unsigned int key, const gchar* value) { } case SP_ATTR_HORIZ_ADV_X: { - double number = value ? g_ascii_strtod(value, 0) : 0; + double number = value ? g_ascii_strtod(value, nullptr) : 0; if (number != this->horiz_adv_x){ this->horiz_adv_x = number; this->requestModified(SP_OBJECT_MODIFIED_FLAG); @@ -68,7 +68,7 @@ void SPMissingGlyph::set(unsigned int key, const gchar* value) { } case SP_ATTR_VERT_ORIGIN_X: { - double number = value ? g_ascii_strtod(value, 0) : 0; + double number = value ? g_ascii_strtod(value, nullptr) : 0; if (number != this->vert_origin_x){ this->vert_origin_x = number; this->requestModified(SP_OBJECT_MODIFIED_FLAG); @@ -77,7 +77,7 @@ void SPMissingGlyph::set(unsigned int key, const gchar* value) { } case SP_ATTR_VERT_ORIGIN_Y: { - double number = value ? g_ascii_strtod(value, 0) : 0; + double number = value ? g_ascii_strtod(value, nullptr) : 0; if (number != this->vert_origin_y){ this->vert_origin_y = number; this->requestModified(SP_OBJECT_MODIFIED_FLAG); @@ -86,7 +86,7 @@ void SPMissingGlyph::set(unsigned int key, const gchar* value) { } case SP_ATTR_VERT_ADV_Y: { - double number = value ? g_ascii_strtod(value, 0) : 0; + double number = value ? g_ascii_strtod(value, nullptr) : 0; if (number != this->vert_adv_y){ this->vert_adv_y = number; this->requestModified(SP_OBJECT_MODIFIED_FLAG); |
