diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-03-28 14:34:11 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-07-07 10:27:29 +0200 |
commit | 150246a7c5a476ab78fadee4c5fe99aeb1670f83 (patch) | |
tree | fe58b14aa212571f403e896c1cb758c6ac370204 | |
parent | tdf#155796 sc: fix select with merged cells (diff) | |
download | core-150246a7c5a476ab78fadee4c5fe99aeb1670f83.tar.gz core-150246a7c5a476ab78fadee4c5fe99aeb1670f83.zip |
-Werror,-Wunused-but-set-variable
...since fb6c99f21e03afb85d00459ca1e1abb07e71d126 "loplugin:unuseddefaultparam
in svtools"
Change-Id: I08da150389bfe8dad09ca293a8f445020c3a51ed
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132208
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | vcl/source/treelist/treelist.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/source/treelist/treelist.cxx b/vcl/source/treelist/treelist.cxx index a876b0675980..25468b2edaf9 100644 --- a/vcl/source/treelist/treelist.cxx +++ b/vcl/source/treelist/treelist.cxx @@ -675,8 +675,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr { DBG_ASSERT(pView&&pActEntry,"PrevVis:View/Entry?"); - sal_uInt16 nDepth = 0; - SvTreeListEntries* pActualList = &pActEntry->pParent->m_Children; sal_uInt32 nActualPos = pActEntry->GetChildListPos(); @@ -686,7 +684,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr while( pView->IsExpanded(pActEntry) ) { pActualList = &pActEntry->m_Children; - nDepth++; pActEntry = pActualList->back().get(); } return pActEntry; @@ -698,7 +695,6 @@ SvTreeListEntry* SvTreeList::PrevVisible(const SvListView* pView, SvTreeListEntr pActEntry = pActEntry->pParent; if ( pActEntry ) { - nDepth--; return pActEntry; } return nullptr; |