Kaydet (Commit) 56bc686c authored tarafından Miklos Vajna's avatar Miklos Vajna

sot: prefix members of StgAvlNode

Change-Id: Ie6de63b524b99246be3d6d5d6e997c7abda675ad
üst 0df69aa1
This diff is collapsed.
...@@ -36,9 +36,9 @@ private: ...@@ -36,9 +36,9 @@ private:
void StgEnum( short& ); void StgEnum( short& );
static StgAvlNode* Rem( StgAvlNode**, StgAvlNode*, bool ); static StgAvlNode* Rem( StgAvlNode**, StgAvlNode*, bool );
protected: protected:
short nId; // iterator ID short m_nId; // iterator ID
short nBalance; // indicates tree balance short m_nBalance; // indicates tree balance
StgAvlNode* pLeft, *pRight; // leaves StgAvlNode* m_pLeft, *m_pRight; // leaves
StgAvlNode(); StgAvlNode();
public: public:
virtual ~StgAvlNode(); virtual ~StgAvlNode();
......
...@@ -116,15 +116,15 @@ void StgDirEntry::Enum( sal_Int32& n ) ...@@ -116,15 +116,15 @@ void StgDirEntry::Enum( sal_Int32& n )
{ {
sal_Int32 nLeft = STG_FREE, nRight = STG_FREE, nDown = STG_FREE; sal_Int32 nLeft = STG_FREE, nRight = STG_FREE, nDown = STG_FREE;
m_nEntry = n++; m_nEntry = n++;
if( pLeft ) if( m_pLeft )
{ {
static_cast<StgDirEntry*>(pLeft)->Enum( n ); static_cast<StgDirEntry*>(m_pLeft)->Enum( n );
nLeft = static_cast<StgDirEntry*>(pLeft)->m_nEntry; nLeft = static_cast<StgDirEntry*>(m_pLeft)->m_nEntry;
} }
if( pRight ) if( m_pRight )
{ {
static_cast<StgDirEntry*>(pRight)->Enum( n ); static_cast<StgDirEntry*>(m_pRight)->Enum( n );
nRight = static_cast<StgDirEntry*>(pRight)->m_nEntry; nRight = static_cast<StgDirEntry*>(m_pRight)->m_nEntry;
} }
if( m_pDown ) if( m_pDown )
{ {
...@@ -140,10 +140,10 @@ void StgDirEntry::Enum( sal_Int32& n ) ...@@ -140,10 +140,10 @@ void StgDirEntry::Enum( sal_Int32& n )
void StgDirEntry::DelTemp( bool bForce ) void StgDirEntry::DelTemp( bool bForce )
{ {
if( pLeft ) if( m_pLeft )
static_cast<StgDirEntry*>(pLeft)->DelTemp( false ); static_cast<StgDirEntry*>(m_pLeft)->DelTemp( false );
if( pRight ) if( m_pRight )
static_cast<StgDirEntry*>(pRight)->DelTemp( false ); static_cast<StgDirEntry*>(m_pRight)->DelTemp( false );
if( m_pDown ) if( m_pDown )
{ {
// If the storage is dead, of course all elements are dead, too // If the storage is dead, of course all elements are dead, too
...@@ -162,7 +162,7 @@ void StgDirEntry::DelTemp( bool bForce ) ...@@ -162,7 +162,7 @@ void StgDirEntry::DelTemp( bool bForce )
StgAvlNode::Remove( reinterpret_cast<StgAvlNode**>(&m_pUp->m_pDown), this, bDel ); StgAvlNode::Remove( reinterpret_cast<StgAvlNode**>(&m_pUp->m_pDown), this, bDel );
if( !bDel ) if( !bDel )
{ {
pLeft = pRight = m_pDown = 0; m_pLeft = m_pRight = m_pDown = 0;
m_bInvalid = m_bZombie = true; m_bInvalid = m_bZombie = true;
} }
} }
...@@ -178,11 +178,11 @@ bool StgDirEntry::Store( StgDirStrm& rStrm ) ...@@ -178,11 +178,11 @@ bool StgDirEntry::Store( StgDirStrm& rStrm )
return false; return false;
// Do not store the current (maybe not committed) entry // Do not store the current (maybe not committed) entry
m_aSave.Store( pEntry ); m_aSave.Store( pEntry );
if( pLeft ) if( m_pLeft )
if( !static_cast<StgDirEntry*>(pLeft)->Store( rStrm ) ) if( !static_cast<StgDirEntry*>(m_pLeft)->Store( rStrm ) )
return false; return false;
if( pRight ) if( m_pRight )
if( !static_cast<StgDirEntry*>(pRight)->Store( rStrm ) ) if( !static_cast<StgDirEntry*>(m_pRight)->Store( rStrm ) )
return false; return false;
if( m_pDown ) if( m_pDown )
if( !m_pDown->Store( rStrm ) ) if( !m_pDown->Store( rStrm ) )
...@@ -218,11 +218,11 @@ bool StgDirEntry::StoreStreams( StgIo& rIo ) ...@@ -218,11 +218,11 @@ bool StgDirEntry::StoreStreams( StgIo& rIo )
{ {
if( !StoreStream( rIo ) ) if( !StoreStream( rIo ) )
return false; return false;
if( pLeft ) if( m_pLeft )
if( !static_cast<StgDirEntry*>(pLeft)->StoreStreams( rIo ) ) if( !static_cast<StgDirEntry*>(m_pLeft)->StoreStreams( rIo ) )
return false; return false;
if( pRight ) if( m_pRight )
if( !static_cast<StgDirEntry*>(pRight)->StoreStreams( rIo ) ) if( !static_cast<StgDirEntry*>(m_pRight)->StoreStreams( rIo ) )
return false; return false;
if( m_pDown ) if( m_pDown )
if( !m_pDown->StoreStreams( rIo ) ) if( !m_pDown->StoreStreams( rIo ) )
...@@ -235,10 +235,10 @@ bool StgDirEntry::StoreStreams( StgIo& rIo ) ...@@ -235,10 +235,10 @@ bool StgDirEntry::StoreStreams( StgIo& rIo )
void StgDirEntry::RevertAll() void StgDirEntry::RevertAll()
{ {
m_aEntry = m_aSave; m_aEntry = m_aSave;
if( pLeft ) if( m_pLeft )
static_cast<StgDirEntry*>(pLeft)->RevertAll(); static_cast<StgDirEntry*>(m_pLeft)->RevertAll();
if( pRight ) if( m_pRight )
static_cast<StgDirEntry*>(pRight)->RevertAll(); static_cast<StgDirEntry*>(m_pRight)->RevertAll();
if( m_pDown ) if( m_pDown )
m_pDown->RevertAll(); m_pDown->RevertAll();
} }
...@@ -249,9 +249,9 @@ bool StgDirEntry::IsDirty() ...@@ -249,9 +249,9 @@ bool StgDirEntry::IsDirty()
{ {
if( m_bDirty || m_bInvalid ) if( m_bDirty || m_bInvalid )
return true; return true;
if( pLeft && static_cast<StgDirEntry*>(pLeft)->IsDirty() ) if( m_pLeft && static_cast<StgDirEntry*>(m_pLeft)->IsDirty() )
return true; return true;
if( pRight && static_cast<StgDirEntry*>(pRight)->IsDirty() ) if( m_pRight && static_cast<StgDirEntry*>(m_pRight)->IsDirty() )
return true; return true;
if( m_pDown && m_pDown->IsDirty() ) if( m_pDown && m_pDown->IsDirty() )
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment