summaryrefslogtreecommitdiffstats
path: root/src/object/sp-font.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-font.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-font.cpp')
-rw-r--r--src/object/sp-font.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/object/sp-font.cpp b/src/object/sp-font.cpp
index a0193224c..4701e8690 100644
--- a/src/object/sp-font.cpp
+++ b/src/object/sp-font.cpp
@@ -84,7 +84,7 @@ void SPFont::set(unsigned int key, const gchar *value) {
switch (key) {
case SP_ATTR_HORIZ_ORIGIN_X:
{
- double number = value ? g_ascii_strtod(value, 0) : 0;
+ double number = value ? g_ascii_strtod(value, nullptr) : 0;
if (number != this->horiz_origin_x){
this->horiz_origin_x = number;
@@ -94,7 +94,7 @@ void SPFont::set(unsigned int key, const gchar *value) {
}
case SP_ATTR_HORIZ_ORIGIN_Y:
{
- double number = value ? g_ascii_strtod(value, 0) : 0;
+ double number = value ? g_ascii_strtod(value, nullptr) : 0;
if (number != this->horiz_origin_y){
this->horiz_origin_y = number;
@@ -104,7 +104,7 @@ void SPFont::set(unsigned int key, const gchar *value) {
}
case SP_ATTR_HORIZ_ADV_X:
{
- double number = value ? g_ascii_strtod(value, 0) : FNT_DEFAULT_ADV;
+ double number = value ? g_ascii_strtod(value, nullptr) : FNT_DEFAULT_ADV;
if (number != this->horiz_adv_x){
this->horiz_adv_x = number;
@@ -114,7 +114,7 @@ void SPFont::set(unsigned int key, const gchar *value) {
}
case SP_ATTR_VERT_ORIGIN_X:
{
- double number = value ? g_ascii_strtod(value, 0) : FNT_DEFAULT_ADV / 2.0;
+ double number = value ? g_ascii_strtod(value, nullptr) : FNT_DEFAULT_ADV / 2.0;
if (number != this->vert_origin_x){
this->vert_origin_x = number;
@@ -124,7 +124,7 @@ void SPFont::set(unsigned int key, const gchar *value) {
}
case SP_ATTR_VERT_ORIGIN_Y:
{
- double number = value ? g_ascii_strtod(value, 0) : FNT_DEFAULT_ASCENT;
+ double number = value ? g_ascii_strtod(value, nullptr) : FNT_DEFAULT_ASCENT;
if (number != this->vert_origin_y){
this->vert_origin_y = number;
@@ -134,7 +134,7 @@ void SPFont::set(unsigned int key, const gchar *value) {
}
case SP_ATTR_VERT_ADV_Y:
{
- double number = value ? g_ascii_strtod(value, 0) : FNT_UNITS_PER_EM;
+ double number = value ? g_ascii_strtod(value, nullptr) : FNT_UNITS_PER_EM;
if (number != this->vert_adv_y){
this->vert_adv_y = number;