summaryrefslogtreecommitdiffstats
path: root/src/object/sp-flowregion.cpp
diff options
context:
space:
mode:
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();