summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-23 22:38:54 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-24 15:58:30 +0100
commit32caa37352d30b5e9fbf7a9113640bd098efb626 (patch)
treefbb9d4ba0b28b8691d7f977fbb2bfd734bbec85c /sw
parent32d6e8fc22c1db14f17bb7b030ba26327752b300 (diff)
PTR_CAST isnt actually needed here
Change-Id: Id0792a164aea33d0c5d3c71b840e9601d75e4f33
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/calbck.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index 6a121ef62cfb..c5f83bced7db 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -308,11 +308,11 @@ public:
if(!m_pPosition)
m_pPosition = const_cast<SwClient*>(m_rRoot.GetDepends());
if(!m_pPosition)
- return PTR_CAST(TElementType,Sync());
+ return static_cast<TElementType*>(Sync());
while(GetRightOfPos())
m_pPosition = GetRightOfPos();
if(m_pPosition->IsA(TYPE(TElementType)))
- return PTR_CAST(TElementType,Sync());
+ return static_cast<TElementType*>(Sync());
return Previous();
}
TElementType* Next()
@@ -321,14 +321,14 @@ public:
m_pPosition = GetRightOfPos();
while(m_pPosition && !m_pPosition->IsA( TYPE(TElementType) ) )
m_pPosition = GetRightOfPos();
- return PTR_CAST(TElementType,Sync());
+ return static_cast<TElementType*>(Sync());
}
TElementType* Previous()
{
m_pPosition = GetLeftOfPos();
while(m_pPosition && !m_pPosition->IsA( TYPE(TElementType) ) )
m_pPosition = GetLeftOfPos();
- return PTR_CAST(TElementType,Sync());
+ return static_cast<TElementType*>(Sync());
}
using sw::ClientIteratorBase::IsChanged;
};