diff options
Diffstat (limited to 'sot/source')
-rw-r--r-- | sot/source/sdstor/stgavl.cxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/stgavl.hxx | 1 |
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: |