summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-06 11:28:44 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-06 11:46:53 +0000
commit88e3b846b8a4bd4ce5507d1bc5441ee4167e5326 (patch)
tree6dbff3db12e6394534ee331644424691bad6325b /sfx2
parentce28d83912d14bc81c455af64893842de78a8c8d (diff)
remove some dead bits of DDE
Change-Id: Ieb1d4e23f1a62b56d14a655a676d9c7d5f33c51c Reviewed-on: https://gerrit.libreoffice.org/23849 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/appl/lnkbase2.cxx16
1 files changed, 4 insertions, 12 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
index 21b3207ce10c..ea424ae9cfe7 100644
--- a/sfx2/source/appl/lnkbase2.cxx
+++ b/sfx2/source/appl/lnkbase2.cxx
@@ -171,18 +171,10 @@ static DdeTopic* FindTopic( const OUString & rLinkName, sal_uInt16* pItemStt )
std::vector<DdeTopic*>& rTopics = pService->GetTopics();
- for( int i = 0; i < 2; ++i )
- {
- 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
- if( i || !pService->MakeTopic( sTopic ) )
- break; // did not work, exiting
- }
+ for( std::vector<DdeTopic*>::iterator iterTopic = rTopics.begin();
+ iterTopic != rTopics.end(); ++iterTopic )
+ if( (*iterTopic)->GetName() == sTopic )
+ return *iterTopic;
break;
}
}