summaryrefslogtreecommitdiffstats
path: root/src/object/sp-flowregion.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
commit169dff19d4da8d76e69b8e896aa25b0013639c03 (patch)
treea0c070fa95188b5cde708ac285e6a2db9df4a83f /src/object/sp-flowregion.cpp
parentAvoid creating a new document before opening an old document. (diff)
downloadinkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz
inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip
modernize loops
Diffstat (limited to 'src/object/sp-flowregion.cpp')
-rw-r--r--src/object/sp-flowregion.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object/sp-flowregion.cpp b/src/object/sp-flowregion.cpp
index c7e6a0422..f1accf2ad 100644
--- a/src/object/sp-flowregion.cpp
+++ b/src/object/sp-flowregion.cpp
@@ -35,8 +35,8 @@ SPFlowregion::SPFlowregion() : SPItem() {
}
SPFlowregion::~SPFlowregion() {
- for (std::vector<Shape*>::iterator it = this->computed.begin() ; it != this->computed.end() ; ++it) {
- delete *it;
+ for (auto & it : this->computed) {
+ delete it;
}
}
@@ -97,8 +97,8 @@ void SPFlowregion::update(SPCtx *ctx, unsigned int flags) {
void SPFlowregion::UpdateComputed()
{
- for (std::vector<Shape*>::iterator it = computed.begin() ; it != computed.end() ; ++it) {
- delete *it;
+ for (auto & it : computed) {
+ delete it;
}
computed.clear();