summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/acredlin.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/miscdlgs/acredlin.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/miscdlgs/acredlin.cxx')
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index b69939b327b8..6abac7366c61 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -1339,11 +1339,7 @@ IMPL_LINK_TYPED( ScAcceptChgDlg, ExpandingHandle, SvTreeListBox*, pTable, bool )
SvTreeListEntry* pEntry=pTheView->GetHdlEntry();
if(pEntry!=nullptr)
{
- ScChangeAction* pScChangeAction=nullptr;
-
ScRedlinData *pEntryData=static_cast<ScRedlinData *>(pEntry->GetUserData());
- if(pEntryData!=nullptr)
- pScChangeAction=static_cast<ScChangeAction*>(pEntryData->pData);
if(pEntry->HasChildrenOnDemand())
{
@@ -1355,7 +1351,7 @@ IMPL_LINK_TYPED( ScAcceptChgDlg, ExpandingHandle, SvTreeListBox*, pTable, bool )
if(pEntryData!=nullptr)
{
- pScChangeAction=static_cast<ScChangeAction*>(pEntryData->pData);
+ ScChangeAction* pScChangeAction=static_cast<ScChangeAction*>(pEntryData->pData);
GetDependents( pScChangeAction, aActionMap, pEntry );
@@ -1525,7 +1521,6 @@ void ScAcceptChgDlg::UpdateEntrys(ScChangeTrack* pChgTrack, sal_uLong nStartActi
SvTreeListEntry* pEntry=pTheView->First();
- SvTreeListEntry* pNextEntry = (pEntry ? SvTreeListBox::NextSibling(pEntry) : nullptr);
SvTreeListEntry* pLastEntry=nullptr;
while(pEntry!=nullptr)
{
@@ -1541,6 +1536,7 @@ void ScAcceptChgDlg::UpdateEntrys(ScChangeTrack* pChgTrack, sal_uLong nStartActi
if(nStartAction<=nAction && nAction<=nEndAction) bRemove=true;
}
+ SvTreeListEntry* pNextEntry;
if(bRemove)
{
nPos=pEntry->GetChildListPos();