From 9fa32e5dce345dea17129587c401c03520fb398b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 16 May 2018 11:54:52 +0200 Subject: loplugin:unusedfields in sfx2 and fix leak of HelpListener_Impl in SfxHelpWindow_Impl Change-Id: I7450be10c8deaf63b7c7f1f4359b4eaf0083bdd4 Reviewed-on: https://gerrit.libreoffice.org/54451 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sot/source/sdstor/stgavl.cxx | 6 ++++-- sot/source/sdstor/stgavl.hxx | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/stgavl.cxx b/sot/source/sdstor/stgavl.cxx index 3adb7b0dc5ed..d488eec69130 100644 --- a/sot/source/sdstor/stgavl.cxx +++ b/sot/source/sdstor/stgavl.cxx @@ -376,10 +376,12 @@ bool StgAvlNode::Remove( StgAvlNode** pRoot, StgAvlNode* pDel, bool bDel ) StgAvlIterator::StgAvlIterator( StgAvlNode* p ) { m_pRoot = p; - m_nCount = 0; m_nCur = 0; if( p ) - p->StgEnum( m_nCount ); + { + short nCount = 0; // tree size + p->StgEnum( nCount ); + } } StgAvlNode* StgAvlIterator::Find( short n ) diff --git a/sot/source/sdstor/stgavl.hxx b/sot/source/sdstor/stgavl.hxx index 831d75942910..d521eb00b290 100644 --- a/sot/source/sdstor/stgavl.hxx +++ b/sot/source/sdstor/stgavl.hxx @@ -52,7 +52,6 @@ public: class StgAvlIterator { StgAvlNode* m_pRoot; // root entry (parent) - short m_nCount; // tree size short m_nCur; // current element StgAvlNode* Find( short ); public: -- cgit