From 8df0cfba2a3aadf80bc18193fbafeeacf34c3fb2 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Mon, 25 Feb 2019 09:20:44 -0800 Subject: [PATCH] Use pre-increment on iterators --- src/common/datetimefmt.cpp | 6 +++--- src/qt/dc.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/datetimefmt.cpp b/src/common/datetimefmt.cpp index d1454c28d1..d0fc9fcc98 100644 --- a/src/common/datetimefmt.cpp +++ b/src/common/datetimefmt.cpp @@ -844,7 +844,7 @@ wxDateTime::ParseRfc822Date(const wxString& date, wxString::const_iterator *end) wxDateTime_t sec = 0; if ( *p == ':' ) { - p++; + ++p; if ( !wxIsdigit(*p) ) return false; @@ -1033,7 +1033,7 @@ wxDateTime::ParseFormat(const wxString& date, // spaces in the input while ( input != end && wxIsspace(*input) ) { - input++; + ++input; } } else // !space @@ -1772,7 +1772,7 @@ wxDateTime::ParseDate(const wxString& date, wxString::const_iterator *end) wxString::const_iterator p = pBegin; while ( p != pEnd && wxIsspace(*p) ) - p++; + ++p; // some special cases static struct diff --git a/src/qt/dc.cpp b/src/qt/dc.cpp index dfde8af7d1..0143c5b6a0 100644 --- a/src/qt/dc.cpp +++ b/src/qt/dc.cpp @@ -93,7 +93,7 @@ void wxQtDCImpl::QtPreparePainter( ) m_qtPainter->setClipRect( r.x, r.y, r.width, r.height, append ? Qt::IntersectClip : Qt::ReplaceClip ); append = true; - ri++; + ++ri; } } }