diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-05-06 10:56:43 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-05-06 10:56:43 +0200 |
commit | df0071f0ac5cd29f7a9220639aaf54d0dd3269f7 (patch) | |
tree | 1df419127d2d4078380347196957697cd67d840f /sfx2 | |
parent | 1b233cf999a5ba25adff05e94156061f083402c4 (diff) |
Clear a leftover instance of DdeTopics
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/lnkbase2.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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<DdeTopic*>& 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<DdeTopic*>::iterator iterTopic = rTopics.begin(); + iterTopic != rTopics.end(); iterTopic++ ) + if( (*iterTopic)->GetName() == sTopic ) + return *iterTopic; // Topic not found? // then we try once to create it |