summaryrefslogtreecommitdiffstats
path: root/src/object/sp-flowdiv.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-flowdiv.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-flowdiv.cpp')
-rw-r--r--src/object/sp-flowdiv.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/object/sp-flowdiv.cpp b/src/object/sp-flowdiv.cpp
index 002fcff85..d79ff349d 100644
--- a/src/object/sp-flowdiv.cpp
+++ b/src/object/sp-flowdiv.cpp
@@ -87,19 +87,19 @@ void SPFlowdiv::set(unsigned int key, const gchar* value) {
Inkscape::XML::Node* SPFlowdiv::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
if ( flags & SP_OBJECT_WRITE_BUILD ) {
- if ( repr == NULL ) {
+ if ( repr == nullptr ) {
repr = xml_doc->createElement("svg:flowDiv");
}
std::vector<Inkscape::XML::Node *> l;
for (auto& child: children) {
- Inkscape::XML::Node* c_repr = NULL;
+ Inkscape::XML::Node* c_repr = nullptr;
if ( SP_IS_FLOWTSPAN (&child) ) {
- c_repr = child.updateRepr(xml_doc, NULL, flags);
+ c_repr = child.updateRepr(xml_doc, nullptr, flags);
} else if ( SP_IS_FLOWPARA(&child) ) {
- c_repr = child.updateRepr(xml_doc, NULL, flags);
+ c_repr = child.updateRepr(xml_doc, nullptr, flags);
} else if ( SP_IS_STRING(&child) ) {
c_repr = xml_doc->createTextNode(SP_STRING(&child)->string.c_str());
}
@@ -109,7 +109,7 @@ Inkscape::XML::Node* SPFlowdiv::write(Inkscape::XML::Document *xml_doc, Inkscape
}
}
for (auto i=l.rbegin();i!=l.rend();++i) {
- repr->addChild(*i, NULL);
+ repr->addChild(*i, nullptr);
Inkscape::GC::release(*i);
}
} else {
@@ -210,19 +210,19 @@ void SPFlowtspan::set(unsigned int key, const gchar* value) {
Inkscape::XML::Node *SPFlowtspan::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
if ( flags&SP_OBJECT_WRITE_BUILD ) {
- if ( repr == NULL ) {
+ if ( repr == nullptr ) {
repr = xml_doc->createElement("svg:flowSpan");
}
std::vector<Inkscape::XML::Node *> l;
for (auto& child: children) {
- Inkscape::XML::Node* c_repr = NULL;
+ Inkscape::XML::Node* c_repr = nullptr;
if ( SP_IS_FLOWTSPAN(&child) ) {
- c_repr = child.updateRepr(xml_doc, NULL, flags);
+ c_repr = child.updateRepr(xml_doc, nullptr, flags);
} else if ( SP_IS_FLOWPARA(&child) ) {
- c_repr = child.updateRepr(xml_doc, NULL, flags);
+ c_repr = child.updateRepr(xml_doc, nullptr, flags);
} else if ( SP_IS_STRING(&child) ) {
c_repr = xml_doc->createTextNode(SP_STRING(&child)->string.c_str());
}
@@ -232,7 +232,7 @@ Inkscape::XML::Node *SPFlowtspan::write(Inkscape::XML::Document *xml_doc, Inksca
}
}
for (auto i=l.rbegin();i!=l.rend();++i) {
- repr->addChild(*i, NULL);
+ repr->addChild(*i, nullptr);
Inkscape::GC::release(*i);
}
} else {
@@ -333,19 +333,19 @@ void SPFlowpara::set(unsigned int key, const gchar* value) {
Inkscape::XML::Node *SPFlowpara::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
if ( flags&SP_OBJECT_WRITE_BUILD ) {
- if ( repr == NULL ) {
+ if ( repr == nullptr ) {
repr = xml_doc->createElement("svg:flowPara");
}
std::vector<Inkscape::XML::Node *> l;
for (auto& child: children) {
- Inkscape::XML::Node* c_repr = NULL;
+ Inkscape::XML::Node* c_repr = nullptr;
if ( SP_IS_FLOWTSPAN(&child) ) {
- c_repr = child.updateRepr(xml_doc, NULL, flags);
+ c_repr = child.updateRepr(xml_doc, nullptr, flags);
} else if ( SP_IS_FLOWPARA(&child) ) {
- c_repr = child.updateRepr(xml_doc, NULL, flags);
+ c_repr = child.updateRepr(xml_doc, nullptr, flags);
} else if ( SP_IS_STRING(&child) ) {
c_repr = xml_doc->createTextNode(SP_STRING(&child)->string.c_str());
}
@@ -356,7 +356,7 @@ Inkscape::XML::Node *SPFlowpara::write(Inkscape::XML::Document *xml_doc, Inkscap
}
for (auto i=l.rbegin();i!=l.rend();++i) {
- repr->addChild(*i, NULL);
+ repr->addChild(*i, nullptr);
Inkscape::GC::release(*i);
}
} else {
@@ -403,7 +403,7 @@ void SPFlowline::modified(unsigned int flags) {
Inkscape::XML::Node *SPFlowline::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
if ( flags & SP_OBJECT_WRITE_BUILD ) {
- if ( repr == NULL ) {
+ if ( repr == nullptr ) {
repr = xml_doc->createElement("svg:flowLine");
}
}
@@ -440,7 +440,7 @@ void SPFlowregionbreak::modified(unsigned int flags) {
Inkscape::XML::Node *SPFlowregionbreak::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
if ( flags & SP_OBJECT_WRITE_BUILD ) {
- if ( repr == NULL ) {
+ if ( repr == nullptr ) {
repr = xml_doc->createElement("svg:flowLine");
}
}