[Libreoffice-commits] libvisio.git: src/lib

Julien Nabet serval2412 at yahoo.fr
Sun May 29 13:54:16 UTC 2016


 src/lib/VSDContentCollector.cpp |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 10f1e175b2dc83cc486614ac5a7a3b286eea7c0a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun May 29 15:52:38 2016 +0200

    cppcheck: Prefer prefix ++/-- operators for non-primitive types
    
    Change-Id: Ib375053b5830f8120dccdfa4278c4138b02deba8

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


More information about the Libreoffice-commits mailing list