summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-15 04:47:36 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-16 13:24:08 +0100
commit8b41d4292b7c72643602cdfd89358972d14faf27 (patch)
tree5cf21b75de2f3ec160bd69577687607eadf1b30e
parentb5cff1eb3f728a91df70fc72bf03e9b5558112b0 (diff)
use SwIterator<>
Change-Id: Ic24eaa5b0fd4c1c06a4a43c77418cb44e53e0f7b
-rw-r--r--sw/source/core/edit/edfld.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx
index 6e05a4a53a16..3cccf44b6ed8 100644
--- a/sw/source/core/edit/edfld.cxx
+++ b/sw/source/core/edit/edfld.cxx
@@ -179,14 +179,14 @@ void SwEditShell::FieldToText( SwFieldType* pType )
StartUndo( UNDO_DELETE );
Push();
SwPaM* pPaM = GetCrsr();
-
+ // TODO: this is really hackish
SwFieldHint aHint( pPaM );
- SwClientIter aIter( *pType );
- for ( SwClient* pClient = aIter.GoStart(); pClient; pClient = ++aIter )
+ SwIterator<SwClient,SwFieldType> aIter(*pType);
+ for( SwClient* pClient = aIter.First(); pClient; pClient = aIter.Next() )
{
pPaM->DeleteMark();
pClient->SwClientNotifyCall( *pType, aHint );
- }
+ }
Pop( false );
EndAllAction();