From: Jean-Marc Lasgouttes Date: Mon, 7 Jan 2019 12:50:55 +0000 (+0100) Subject: use range-based for loops X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=27ebcf3e3d0523fd8c9f25b69c3dc268eb759ce5;p=features.git use range-based for loops --- diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index a92461460e..e547888cf9 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -580,10 +580,7 @@ void RowPainter::paintLast() const void RowPainter::paintOnlyInsets() { - Row::const_iterator cit = row_.begin(); - Row::const_iterator const & end = row_.end(); - for ( ; cit != end ; ++cit) { - Row::Element const & e = *cit; + for (Row::Element const & e : row_) { if (e.type == Row::INSET) { paintInset(e); // The markings of foreign languages @@ -601,11 +598,7 @@ void RowPainter::paintOnlyInsets() void RowPainter::paintText() { - Row::const_iterator cit = row_.begin(); - Row::const_iterator const & end = row_.end(); - for ( ; cit != end ; ++cit) { - Row::Element const & e = *cit; - + for (Row::Element const & e : row_) { switch (e.type) { case Row::STRING: case Row::VIRTUAL: