summaryrefslogtreecommitdiffstats
path: root/sfx2/source/appl/lnkbase2.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-07-31 14:46:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-07-31 16:39:21 +0100
commite1544be5759bfbaf93d8a4dd66a950a8736e58e5 (patch)
tree9ba68977376cb799ddb4c0d5b2a842549a0c1ee2 /sfx2/source/appl/lnkbase2.cxx
parentthe dmake binary on many build-bots is not in sync with the in-tree version (diff)
downloadcore-e1544be5759bfbaf93d8a4dd66a950a8736e58e5.tar.gz
core-e1544be5759bfbaf93d8a4dd66a950a8736e58e5.zip
remove DECLARE_LIST
Change-Id: Ic74476797edbb08ed6721ea9a7d23b0dd042b4ce
Diffstat (limited to 'sfx2/source/appl/lnkbase2.cxx')
-rw-r--r--sfx2/source/appl/lnkbase2.cxx6
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;
}