From df0071f0ac5cd29f7a9220639aaf54d0dd3269f7 Mon Sep 17 00:00:00 2001 From: Fridrich Štrba Date: Fri, 6 May 2011 10:56:43 +0200 Subject: Clear a leftover instance of DdeTopics --- sfx2/source/appl/lnkbase2.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx index 598b08988cbb..b60f0c48d8bd 100644 --- a/sfx2/source/appl/lnkbase2.cxx +++ b/sfx2/source/appl/lnkbase2.cxx @@ -625,14 +625,14 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt ) if( pItemStt ) *pItemStt = nTokenPos; - DdeTopics& rTopics = pService->GetTopics(); + std::vector& rTopics = pService->GetTopics(); for( int i = 0; i < 2; ++i ) { - for( DdeTopic* pTopic = rTopics.First(); pTopic; - pTopic = rTopics.Next() ) - if( pTopic->GetName() == sTopic ) - return pTopic; + for( std::vector::iterator iterTopic = rTopics.begin(); + iterTopic != rTopics.end(); iterTopic++ ) + if( (*iterTopic)->GetName() == sTopic ) + return *iterTopic; // Topic not found? // then we try once to create it -- cgit