diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-31 14:46:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-31 16:39:21 +0100 |
commit | e1544be5759bfbaf93d8a4dd66a950a8736e58e5 (patch) | |
tree | 9ba68977376cb799ddb4c0d5b2a842549a0c1ee2 /sfx2 | |
parent | b168056750d6a1f88667376be0e8f48eeccc9aca (diff) |
remove DECLARE_LIST
Change-Id: Ic74476797edbb08ed6721ea9a7d23b0dd042b4ce
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 8bc670491176..a2b7410f3516 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -606,8 +606,9 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt ) String sService( sNm.GetToken( 0, cTokenSeperator, nTokenPos ) ); DdeServices& rSvc = DdeService::GetServices(); - for( DdeService* pService = rSvc.First(); pService; - pService = rSvc.Next() ) + for (DdeServices::iterator aI = rSvc.begin(); aI != rSvc.end(); ++aI) + { + DdeService* pService = *aI; if( pService->GetName() == sService ) { // then we search for the Topic @@ -631,6 +632,7 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt ) } break; } + } return 0; } |