Kaydet (Commit) feac7080 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

typo

Change-Id: I5bbcb45312cb85c67ef1205b31e7ea4b0e944da8
üst d83b2ae1
...@@ -267,7 +267,7 @@ namespace sw ...@@ -267,7 +267,7 @@ namespace sw
m_pCurrent = m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()); m_pCurrent = m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends());
} }
SwClient* GetLeftOfPos() { return static_cast<SwClient*>(m_pPosition->m_pLeft); } SwClient* GetLeftOfPos() { return static_cast<SwClient*>(m_pPosition->m_pLeft); }
SwClient* GetRighOfPos() { return static_cast<SwClient*>(m_pPosition->m_pRight); } SwClient* GetRightOfPos() { return static_cast<SwClient*>(m_pPosition->m_pRight); }
SwClient* GoStart() SwClient* GoStart()
{ {
if((m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()))) if((m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends())))
...@@ -310,8 +310,8 @@ public: ...@@ -310,8 +310,8 @@ public:
m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()); m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends());
if(!m_pPosition) if(!m_pPosition)
return PTR_CAST(TElementType,m_pCurrent = nullptr); return PTR_CAST(TElementType,m_pCurrent = nullptr);
while(GetRighOfPos()) while(GetRightOfPos())
m_pPosition = GetRighOfPos(); m_pPosition = GetRightOfPos();
if(m_pPosition->IsA(TYPE(TElementType))) if(m_pPosition->IsA(TYPE(TElementType)))
return PTR_CAST(TElementType,m_pCurrent = m_pPosition); return PTR_CAST(TElementType,m_pCurrent = m_pPosition);
return Previous(); return Previous();
...@@ -319,9 +319,9 @@ public: ...@@ -319,9 +319,9 @@ public:
TElementType* Next() TElementType* Next()
{ {
if( m_pPosition == m_pCurrent ) if( m_pPosition == m_pCurrent )
m_pPosition = GetRighOfPos(); m_pPosition = GetRightOfPos();
while(m_pPosition && !m_pPosition->IsA( TYPE(TElementType) ) ) while(m_pPosition && !m_pPosition->IsA( TYPE(TElementType) ) )
m_pPosition = GetRighOfPos(); m_pPosition = GetRightOfPos();
return PTR_CAST(TElementType,m_pCurrent = m_pPosition); return PTR_CAST(TElementType,m_pCurrent = m_pPosition);
} }
TElementType* Previous() TElementType* Previous()
...@@ -347,14 +347,14 @@ public: ...@@ -347,14 +347,14 @@ public:
m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()); m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends());
if(!m_pPosition) if(!m_pPosition)
return m_pCurrent = nullptr; return m_pCurrent = nullptr;
while(GetRighOfPos()) while(GetRightOfPos())
m_pPosition = GetRighOfPos(); m_pPosition = GetRightOfPos();
return m_pCurrent = m_pPosition; return m_pCurrent = m_pPosition;
} }
SwClient* Next() SwClient* Next()
{ {
if( m_pPosition == m_pCurrent ) if( m_pPosition == m_pCurrent )
m_pPosition = GetRighOfPos(); m_pPosition = GetRightOfPos();
return m_pCurrent = m_pPosition; return m_pCurrent = m_pPosition;
} }
SwClient* Previous() SwClient* Previous()
......
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