diff options
Diffstat (limited to 'sot/source/sdstor/stgavl.cxx')
-rw-r--r-- | sot/source/sdstor/stgavl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgavl.cxx b/sot/source/sdstor/stgavl.cxx index 0c78054045f0..98a86f3edb96 100644 --- a/sot/source/sdstor/stgavl.cxx +++ b/sot/source/sdstor/stgavl.cxx @@ -284,7 +284,7 @@ void StgAvlNode::StgEnum( short& n ) bool StgAvlNode::Insert( StgAvlNode** pRoot, StgAvlNode* pIns ) { - StgAvlNode* pPivot, *pHeavy, *pNewRoot, *pParent, *pPrev; + StgAvlNode* pPivot, *pHeavy, *pParent, *pPrev; if ( !pRoot ) return false; @@ -310,6 +310,7 @@ bool StgAvlNode::Insert( StgAvlNode** pRoot, StgAvlNode* pIns ) short nDelta = pPivot->Adjust( &pHeavy, pIns ); if( pPivot->m_nBalance >= 2 || pPivot->m_nBalance <= -2 ) { + StgAvlNode* pNewRoot; pHeavy = ( nDelta < 0 ) ? pPivot->m_pRight : pPivot->m_pLeft; // left imbalance if( nDelta > 0 ) |