summaryrefslogtreecommitdiffstats
path: root/src/object/sp-glyph.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/object/sp-glyph.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/object/sp-glyph.cpp')
-rw-r--r--src/object/sp-glyph.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/object/sp-glyph.cpp b/src/object/sp-glyph.cpp
index 6284cbfa1..9f5f6403c 100644
--- a/src/object/sp-glyph.cpp
+++ b/src/object/sp-glyph.cpp
@@ -21,10 +21,10 @@
SPGlyph::SPGlyph()
: SPObject()
//TODO: correct these values:
- , d(NULL)
+ , d(nullptr)
, orientation(GLYPH_ORIENTATION_BOTH)
, arabic_form(GLYPH_ARABIC_FORM_INITIAL)
- , lang(NULL)
+ , lang(nullptr)
, horiz_adv_x(0)
, vert_origin_x(0)
, vert_origin_y(0)
@@ -168,7 +168,7 @@ void SPGlyph::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;
@@ -178,7 +178,7 @@ void SPGlyph::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;
@@ -188,7 +188,7 @@ void SPGlyph::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;
@@ -198,7 +198,7 @@ void SPGlyph::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;