summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/odf.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/extension/internal/odf.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/extension/internal/odf.cpp')
-rw-r--r--src/extension/internal/odf.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/extension/internal/odf.cpp b/src/extension/internal/odf.cpp
index 42c2bbae3..2c25ea1f4 100644
--- a/src/extension/internal/odf.cpp
+++ b/src/extension/internal/odf.cpp
@@ -218,7 +218,7 @@ private:
virtual void init()
{
badval = 0.0;
- d = NULL;
+ d = nullptr;
rows = 0;
cols = 0;
size = 0;
@@ -229,7 +229,7 @@ private:
if (d)
{
delete[] d;
- d = 0;
+ d = nullptr;
}
rows = other.rows;
cols = other.cols;
@@ -289,7 +289,7 @@ public:
SingularValueDecomposition (const SVDMatrix &mat) :
A (mat),
U (),
- s (NULL),
+ s (nullptr),
s_size (0),
V ()
{
@@ -1010,7 +1010,7 @@ static void gatherText(Inkscape::XML::Node *node, Glib::ustring &buf)
}
for (Inkscape::XML::Node *child = node->firstChild() ;
- child != NULL; child = child->next())
+ child != nullptr; child = child->next())
{
gatherText(child, buf);
}
@@ -1466,7 +1466,7 @@ bool OdfOutput::processGradient(SPItem *item,
//## Gradient
SPGradient *gradient = SP_GRADIENT((checkFillGradient?(SP_STYLE_FILL_SERVER(style)) :(SP_STYLE_STROKE_SERVER(style))));
- if (gradient == NULL)
+ if (gradient == nullptr)
{
return false;
}
@@ -1644,7 +1644,7 @@ bool OdfOutput::writeTree(Writer &couts, Writer &souts,
analyzeTransform(tf, rotate, xskew, yskew, xscale, yscale);
//# Do our stuff
- SPCurve *curve = NULL;
+ SPCurve *curve = nullptr;
if (nodeName == "svg" || nodeName == "svg:svg")
{
@@ -2038,7 +2038,7 @@ bool OdfOutput::writeContent(ZipFile &zf, Inkscape::XML::Node *node)
//# Descend into the tree, doing all of our conversions
//# to both files at the same time
- char *oldlocale = g_strdup (setlocale (LC_NUMERIC, NULL));
+ char *oldlocale = g_strdup (setlocale (LC_NUMERIC, nullptr));
setlocale (LC_NUMERIC, "C");
if (!writeTree(couts, souts, node))
{