From f4349fb3e45bd44cef0e2b69af4c9b4cf35dcf43 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 15 Jun 2018 12:46:15 +0200 Subject: =?UTF-8?q?Run=20clang-tidy=E2=80=99s=20modernize-use-nullptr=20pa?= =?UTF-8?q?ss.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer. --- src/object/sp-glyph.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/object/sp-glyph.cpp') 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; -- cgit v1.2.3