diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-20 01:30:44 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-20 02:25:02 +0100 |
commit | feac7080db6c008088396223774f96a5acfc3fe0 (patch) | |
tree | a872986d7cb7457f81c3aac2052c24bf96748ea2 | |
parent | d83b2ae1cc7731b23a2fd735ea9f8d88f4357156 (diff) |
typo
Change-Id: I5bbcb45312cb85c67ef1205b31e7ea4b0e944da8
-rw-r--r-- | sw/inc/calbck.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx index 5a48431bc604..76cdb6d5f5fd 100644 --- a/sw/inc/calbck.hxx +++ b/sw/inc/calbck.hxx @@ -267,7 +267,7 @@ namespace sw m_pCurrent = m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()); } 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() { if((m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()))) @@ -310,8 +310,8 @@ public: m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()); if(!m_pPosition) return PTR_CAST(TElementType,m_pCurrent = nullptr); - while(GetRighOfPos()) - m_pPosition = GetRighOfPos(); + while(GetRightOfPos()) + m_pPosition = GetRightOfPos(); if(m_pPosition->IsA(TYPE(TElementType))) return PTR_CAST(TElementType,m_pCurrent = m_pPosition); return Previous(); @@ -319,9 +319,9 @@ public: TElementType* Next() { if( m_pPosition == m_pCurrent ) - m_pPosition = GetRighOfPos(); + m_pPosition = GetRightOfPos(); while(m_pPosition && !m_pPosition->IsA( TYPE(TElementType) ) ) - m_pPosition = GetRighOfPos(); + m_pPosition = GetRightOfPos(); return PTR_CAST(TElementType,m_pCurrent = m_pPosition); } TElementType* Previous() @@ -347,14 +347,14 @@ public: m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends()); if(!m_pPosition) return m_pCurrent = nullptr; - while(GetRighOfPos()) - m_pPosition = GetRighOfPos(); + while(GetRightOfPos()) + m_pPosition = GetRightOfPos(); return m_pCurrent = m_pPosition; } SwClient* Next() { if( m_pPosition == m_pCurrent ) - m_pPosition = GetRighOfPos(); + m_pPosition = GetRightOfPos(); return m_pCurrent = m_pPosition; } SwClient* Previous() |