mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
use range-based for loops
This commit is contained in:
parent
9d20bc4e98
commit
4bc8e90c25
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user