[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 22 10:08:14 UTC 2018


 sc/source/core/data/markdata.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a8712656dbd3a48d848dff1619622b8400e075f8
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Oct 21 19:54:58 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Oct 22 12:07:51 2018 +0200

    pvs-studio: V1001 variable assigned but is not used by the end of the function
    
    Change-Id: Ida759ae9fce3d384b19e41683bdcd796eb158efe
    Reviewed-on: https://gerrit.libreoffice.org/62147
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sc/source/core/data/markdata.cxx b/sc/source/core/data/markdata.cxx
index 10e7fdc48d34..7c18face085e 100644
--- a/sc/source/core/data/markdata.cxx
+++ b/sc/source/core/data/markdata.cxx
@@ -500,7 +500,7 @@ std::vector<sc::ColRowSpan> ScMarkData::GetMarkedColSpans() const
             while(false);
 
             // Merge marked.
-            itPos = aSpans.insert(itPos, aMarkRange.aStart.Col(), aMarkRange.aEnd.Col()+1, true).first;
+            aSpans.insert(itPos, aMarkRange.aStart.Col(), aMarkRange.aEnd.Col()+1, true);
 
             return sc::toSpanArray<SCCOLROW,sc::ColRowSpan>(aSpans);
         }


More information about the Libreoffice-commits mailing list