diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/object/sp-path.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'src/object/sp-path.cpp')
| -rw-r--r-- | src/object/sp-path.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/object/sp-path.cpp b/src/object/sp-path.cpp index 0ff31f823..379b1bfdf 100644 --- a/src/object/sp-path.cpp +++ b/src/object/sp-path.cpp @@ -62,9 +62,9 @@ gchar* SPPath::description() const { Glib::ustring s; PathEffectList effect_list = this->getEffectList(); - for (PathEffectList::iterator it = effect_list.begin(); it != effect_list.end(); ++it) + for (auto & it : effect_list) { - LivePathEffectObject *lpeobj = (*it)->lpeobject; + LivePathEffectObject *lpeobj = it->lpeobject; if (!lpeobj || !lpeobj->get_lpe()) { break; @@ -94,8 +94,8 @@ void SPPath::convert_to_guides() const { Geom::Affine const i2dt(this->i2dt_affine()); Geom::PathVector const & pv = this->_curve->get_pathvector(); - for(Geom::PathVector::const_iterator pit = pv.begin(); pit != pv.end(); ++pit) { - for(Geom::Path::const_iterator cit = pit->begin(); cit != pit->end_default(); ++cit) { + for(const auto & pit : pv) { + for(Geom::Path::const_iterator cit = pit.begin(); cit != pit.end_default(); ++cit) { // only add curves for straight line segments if( is_straight_curve(*cit) ) { |
