summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-10-30 19:51:29 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-10-31 02:21:58 +0100
commitdc2509bca4f503c11cdde16779363a5aae67185f (patch)
tree1b6457e6f30b6ddd026b753a7623a29c071a0461 /sc
parent2e20c73082cce14b9af01d10ee8f1e07ade5be46 (diff)
cppCheck RedundantAssignment variable bRefFound
Change-Id: I1b8e9d434a682717e09ae1d23470baef55935fe6 Reviewed-on: https://gerrit.libreoffice.org/62664 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/dbdocfun.cxx3
1 files changed, 1 insertions, 2 deletions
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();