diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-14 18:36:31 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-03-16 13:24:07 +0100 |
commit | e9fc57cf8a3527976fc07285c9446b57eb0f9204 (patch) | |
tree | c74a6b92622e31c735deda3d1d2945f4e4d6dab9 | |
parent | 0d97d25d56a5a8466d698e0f5831f2072c8e8baf (diff) |
use SwIterator for typed iteration
Change-Id: I04dc6e6a149cd5d7a5f44714e10909ef225c27c0
-rw-r--r-- | sw/source/core/access/accmap.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx index 398a8a36bf22..16536f3f89df 100644 --- a/sw/source/core/access/accmap.cxx +++ b/sw/source/core/access/accmap.cxx @@ -1338,15 +1338,13 @@ void SwAccessibleMap::InvalidateShapeInParaSelection() if(nStartIndex.GetNode().IsCntntNode()) { SwCntntNode* pCNd = static_cast<SwCntntNode*>(&(nStartIndex.GetNode())); - SwClientIter aClientIter( *pCNd ); - pFrm = static_cast<SwFrm*>(aClientIter.First( TYPE(SwFrm))); + pFrm = SwIterator<SwFrm, SwCntntNode>(*pCNd).First(); } else if( nStartIndex.GetNode().IsTableNode() ) { SwTableNode * pTable = static_cast<SwTableNode *>(&(nStartIndex.GetNode())); SwFrmFmt* pFmt = const_cast<SwFrmFmt*>(pTable->GetTable().GetFrmFmt()); - SwClientIter aClientIter( *pFmt ); - pFrm = static_cast<SwFrm*>(aClientIter.First( TYPE(SwFrm))); + pFrm = SwIterator<SwFrm, SwFrmFmt>(*pFmt).First(); } if( pFrm && mpFrmMap) |