summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun2.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-18 11:03:43 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-20 11:02:45 +0000
commitb0c0a074a2318a231f3f635784da494f1b713c53 (patch)
tree148eff548408d274d4208109d948e763c66e1b5d /sc/source/ui/view/viewfun2.cxx
parent29a9f433c268414747d8ec7343fc2b5987971738 (diff)
clang-tidy clang-analyzer-deadcode.DeadStores
suspect that some of these may reveal latent bugs.... Change-Id: I9de9aabbda9c8952715631577c29c1830df1eb71 Reviewed-on: https://gerrit.libreoffice.org/24200 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/view/viewfun2.cxx')
-rw-r--r--sc/source/ui/view/viewfun2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 18cccbf4123d..ed2414a2c516 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -2587,8 +2587,6 @@ void ScViewFunc::MoveTable(
pDestDoc = &pDestShell->GetDocument();
- SCTAB nTab = GetViewData().GetTabNo();
-
if (pDestDoc != pDoc)
{
if (bNewDoc)
@@ -2847,7 +2845,7 @@ void ScViewFunc::MoveTable(
// No need to keep this around when we are not renaming.
pTabNames.reset();
- nTab = GetViewData().GetTabNo();
+ SCTAB nTab = GetViewData().GetTabNo();
if (bUndo)
{