summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorZdibák Zoltán <zdibakzoltan@gmail.com>2018-10-30 20:07:12 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-10-31 02:20:49 +0100
commit2e20c73082cce14b9af01d10ee8f1e07ade5be46 (patch)
treea45df184c680c96b9140b74784cf3dc484661770 /sc
parent8e037373d342826f6b80a3887b0421cace324ac7 (diff)
cppCheck RedundantAssignment variable pMergeAttr
Change-Id: I5dc87ec04a7c79359c947ba2786bbe067770904c Reviewed-on: https://gerrit.libreoffice.org/62665 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/view/tabview2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabview2.cxx b/sc/source/ui/view/tabview2.cxx
index 30868a8faee1..c47cc31501bb 100644
--- a/sc/source/ui/view/tabview2.cxx
+++ b/sc/source/ui/view/tabview2.cxx
@@ -502,7 +502,6 @@ void ScTabView::MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
SCROW nCurYOffset = 0;
SCROW nBlockStartYOffset = 0;
bool bBlockStartMerged = false;
- const ScMergeAttr* pMergeAttr = nullptr;
ScDocument* pDocument = aViewData.GetDocument();
// The following block checks whether or not the "BlockStart" (anchor)
@@ -512,7 +511,7 @@ void ScTabView::MarkCursor( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ,
// selection is moving in the upperleft direction, the anchor cell will
// move to the lower-right corner of the merged anchor cell, and so on.
- pMergeAttr =
+ const ScMergeAttr* pMergeAttr =
pDocument->GetAttr( nBlockStartXOrig, nBlockStartYOrig, nTab, ATTR_MERGE );
if ( pMergeAttr->IsMerged() )
{