summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 11:54:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-18 13:00:38 +0200
commit9fa32e5dce345dea17129587c401c03520fb398b (patch)
treee33696647bcce308420d45b4d25246201f0a27a5 /sot
parenta0c15b39cb30736e04564420f55c50fefb51e41a (diff)
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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgavl.cxx6
-rw-r--r--sot/source/sdstor/stgavl.hxx1
2 files changed, 4 insertions, 3 deletions
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: