summaryrefslogtreecommitdiffstats
path: root/src/object/sp-glyph-kerning.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-kerning.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-kerning.cpp')
-rw-r--r--src/object/sp-glyph-kerning.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/object/sp-glyph-kerning.cpp b/src/object/sp-glyph-kerning.cpp
index 66de5aed9..899bb71f6 100644
--- a/src/object/sp-glyph-kerning.cpp
+++ b/src/object/sp-glyph-kerning.cpp
@@ -22,10 +22,10 @@
SPGlyphKerning::SPGlyphKerning()
: SPObject()
//TODO: correct these values:
- , u1(NULL)
- , g1(NULL)
- , u2(NULL)
- , g2(NULL)
+ , u1(nullptr)
+ , g1(nullptr)
+ , u2(nullptr)
+ , g2(nullptr)
, k(0)
{
}
@@ -124,7 +124,7 @@ void SPGlyphKerning::set(unsigned int key, const gchar *value)
}
case SP_ATTR_K:
{
- double number = value ? g_ascii_strtod(value, 0) : 0;
+ double number = value ? g_ascii_strtod(value, nullptr) : 0;
if (number != this->k){
this->k = number;