summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-05-29 15:52:38 +0200
committerJulien Nabet <serval2412@yahoo.fr>2016-05-29 15:52:38 +0200
commit10f1e175b2dc83cc486614ac5a7a3b286eea7c0a (patch)
treeb764c6272184d3faf30a075ca39dc67b1d158a75
parent21027b7349a17cc18f74b28e9f1b32358e47135f (diff)
cppcheck: Prefer prefix ++/-- operators for non-primitive types
Change-Id: Ib375053b5830f8120dccdfa4278c4138b02deba8
-rw-r--r--src/lib/VSDContentCollector.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp
index fb216b0..3178937 100644
--- a/src/lib/VSDContentCollector.cpp
+++ b/src/lib/VSDContentCollector.cpp
@@ -760,11 +760,11 @@ void libvisio::VSDContentCollector::_flushText()
* last one. */
if (!paraNumRemaining)
{
- paraIt++;
+ ++paraIt;
if (paraIt != m_paraFormats.end())
paraNumRemaining = paraIt->charCount;
else
- paraIt--;
+ --paraIt;
}
/* Decrease the count of remaining characters in the same span,
@@ -777,7 +777,7 @@ void libvisio::VSDContentCollector::_flushText()
* the last one. */
if (!charNumRemaining)
{
- charIt++;
+ ++charIt;
if (charIt != m_charFormats.end())
{
charNumRemaining = charIt->charCount;
@@ -791,7 +791,7 @@ void libvisio::VSDContentCollector::_flushText()
}
}
else
- charIt--;
+ --charIt;
}
/* Decrease the count of remaining characters using the same
@@ -802,7 +802,7 @@ void libvisio::VSDContentCollector::_flushText()
* last one. */
if (!tabNumRemaining)
{
- tabIt++;
+ ++tabIt;
if (tabIt != m_tabSets.end())
tabNumRemaining = tabIt->m_numChars;
else