summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-powerclip.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/live_effects/lpe-powerclip.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/live_effects/lpe-powerclip.cpp')
-rw-r--r--src/live_effects/lpe-powerclip.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/live_effects/lpe-powerclip.cpp b/src/live_effects/lpe-powerclip.cpp
index b4c342930..35da3bd26 100644
--- a/src/live_effects/lpe-powerclip.cpp
+++ b/src/live_effects/lpe-powerclip.cpp
@@ -94,7 +94,7 @@ LPEPowerClip::doBeforeEffect (SPLPEItem const* lpeitem){
std::vector<SPObject*> clip_path_list = clip_path->childList(true);
for ( std::vector<SPObject*>::const_iterator iter=clip_path_list.begin();iter!=clip_path_list.end();++iter) {
SPObject * clip_data = *iter;
- SPObject * clip_to_path = NULL;
+ SPObject * clip_to_path = nullptr;
if (SP_IS_SHAPE(clip_data) && !SP_IS_PATH(clip_data) && convert_shapes) {
SPDocument * document = SP_ACTIVE_DOCUMENT;
if (!document) {
@@ -126,7 +126,7 @@ LPEPowerClip::doBeforeEffect (SPLPEItem const* lpeitem){
clip_to_path = document->getObjectByRepr(clip_path_node);
// transform position
- SPCurve * c = NULL;
+ SPCurve * c = nullptr;
c = SP_SHAPE(clip_to_path)->getCurve();
if (c) {
Geom::PathVector c_pv = c->get_pathvector();
@@ -136,7 +136,7 @@ LPEPowerClip::doBeforeEffect (SPLPEItem const* lpeitem){
c->unref();
}
- clip_path_node->setAttribute("transform", NULL);
+ clip_path_node->setAttribute("transform", nullptr);
if (title && clip_to_path) {
clip_to_path->setTitle(title);
@@ -190,7 +190,7 @@ LPEPowerClip::addInverse (SPItem * clip_data){
addInverse(subitem);
}
} else if (SP_IS_PATH(clip_data)) {
- SPCurve * c = NULL;
+ SPCurve * c = nullptr;
c = SP_SHAPE(clip_data)->getCurve();
if (c) {
Geom::PathVector c_pv = c->get_pathvector();
@@ -213,7 +213,7 @@ LPEPowerClip::addInverse (SPItem * clip_data){
if (tools_isactive(desktop, TOOLS_NODES)) {
Inkscape::Selection * sel = SP_ACTIVE_DESKTOP->getSelection();
SPItem * item = sel->singleItem();
- if (item != NULL) {
+ if (item != nullptr) {
sel->remove(item);
sel->add(item);
}
@@ -236,7 +236,7 @@ LPEPowerClip::removeInverse (SPItem * clip_data){
removeInverse(subitem);
}
} else if (SP_IS_PATH(clip_data)) {
- SPCurve * c = NULL;
+ SPCurve * c = nullptr;
c = SP_SHAPE(clip_data)->getCurve();
if (c) {
Geom::PathVector c_pv = c->get_pathvector();
@@ -255,7 +255,7 @@ LPEPowerClip::removeInverse (SPItem * clip_data){
if (tools_isactive(desktop, TOOLS_NODES)) {
Inkscape::Selection * sel = SP_ACTIVE_DESKTOP->getSelection();
SPItem * item = sel->singleItem();
- if (item != NULL) {
+ if (item != nullptr) {
sel->remove(item);
sel->add(item);
}
@@ -413,7 +413,7 @@ LPEPowerClip::flattenClip(SPItem * clip_data, Geom::PathVector &path_in)
flattenClip(subitem, path_in);
}
} else if (SP_IS_PATH(clip_data)) {
- SPCurve * c = NULL;
+ SPCurve * c = nullptr;
c = SP_SHAPE(clip_data)->getCurve();
if (c) {
Geom::PathVector c_pv = c->get_pathvector();