[Libreoffice-commits] core.git: drawinglayer/source sw/source

Julien Nabet (via logerrit) logerrit at kemper.freedesktop.org
Sun Jan 17 14:16:51 UTC 2021


 drawinglayer/source/primitive2d/svggradientprimitive2d.cxx |    4 ++--
 sw/source/uibase/docvw/FrameControlsManager.cxx            |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 95f2c4c6396c826b5cf94adcc848c0df4dc76030
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Jan 17 13:16:04 2021 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Jan 17 15:16:12 2021 +0100

    cppcheck: Prefer prefix ++/-- operators for non-primitive types
    
    Change-Id: I866665b596a37c1e111fad8afeb9d4cb4d75c257
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109469
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx
index 7c9eb8441306..116c2c6c03db 100644
--- a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx
@@ -186,7 +186,7 @@ namespace drawinglayer::primitive2d
             const bool bMirror(SpreadMethod::Reflect == getSpreadMethod() && 0 != rInt % 2);
             const SvgGradientEntryVector& rCurrent(bMirror ? getMirroredGradientEntries() : getGradientEntries());
 
-            for(SvgGradientEntryVector::const_reverse_iterator aIter(rCurrent.rbegin()); aIter != rCurrent.rend(); aIter++)
+            for(SvgGradientEntryVector::const_reverse_iterator aIter(rCurrent.rbegin()); aIter != rCurrent.rend(); ++aIter)
             {
                if(basegfx::fTools::lessOrEqual(aIter->getOffset(), fFrac))
                {
@@ -208,7 +208,7 @@ namespace drawinglayer::primitive2d
             const bool bMirror(SpreadMethod::Reflect == getSpreadMethod() && 0 != rInt % 2);
             const SvgGradientEntryVector& rCurrent(bMirror ? getMirroredGradientEntries() : getGradientEntries());
 
-            for(SvgGradientEntryVector::const_iterator aIter(rCurrent.begin()); aIter != rCurrent.end(); aIter++)
+            for(SvgGradientEntryVector::const_iterator aIter(rCurrent.begin()); aIter != rCurrent.end(); ++aIter)
             {
                if(basegfx::fTools::more(aIter->getOffset(), fFrac))
                {
diff --git a/sw/source/uibase/docvw/FrameControlsManager.cxx b/sw/source/uibase/docvw/FrameControlsManager.cxx
index 61bd5ca4badf..c9503e2a06d6 100644
--- a/sw/source/uibase/docvw/FrameControlsManager.cxx
+++ b/sw/source/uibase/docvw/FrameControlsManager.cxx
@@ -203,7 +203,7 @@ void SwFrameControlsManager::SetOutlineContentVisibilityButtons()
             it = m_aTextNodeContentFrameMap.erase(it);
         }
         else
-            it++;
+            ++it;
     }
     for (SwNode* pNd : m_pEditWin->GetView().GetWrtShell().GetNodes().GetOutLineNds())
     {


More information about the Libreoffice-commits mailing list