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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Oct 31 01:22:29 UTC 2018


 sc/source/ui/docshell/dbdocfun.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit dc2509bca4f503c11cdde16779363a5aae67185f
Author:     Zdibák Zoltán <zdibakzoltan at gmail.com>
AuthorDate: Tue Oct 30 19:51:29 2018 +0100
Commit:     Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Wed Oct 31 02:21:58 2018 +0100

    cppCheck RedundantAssignment variable bRefFound
    
    Change-Id: I1b8e9d434a682717e09ae1d23470baef55935fe6
    Reviewed-on: https://gerrit.libreoffice.org/62664
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx
index 622d54755641..5060c53ff205 100644
--- a/sc/source/ui/docshell/dbdocfun.cxx
+++ b/sc/source/ui/docshell/dbdocfun.cxx
@@ -1445,9 +1445,8 @@ bool ScDBDocFunc::CreatePivotTable(const ScDPObject& rDPObj, bool bRecord, bool
 
     // Synchronize groups between linked tables
     {
-        bool bRefFound = false;
         const ScDPDimensionSaveData* pGroups = nullptr;
-        bRefFound = rDoc.GetDPCollection()->GetReferenceGroups(rDestObj, &pGroups);
+        bool bRefFound = rDoc.GetDPCollection()->GetReferenceGroups(rDestObj, &pGroups);
         if (bRefFound)
         {
             ScDPSaveData* pSaveData = rDestObj.GetSaveData();


More information about the Libreoffice-commits mailing list