Kaydet (Commit) aa3b2f90 authored tarafından Caolán McNamara's avatar Caolán McNamara

result of DdeQueryStringW unused

since

commit 88e3b846
Date:   Wed Apr 6 11:28:44 2016 +0200

    remove some dead bits of DDE

Change-Id: I66b2f8365e3fed15391ff0fe2eb3c874b5054e91
Reviewed-on: https://gerrit.libreoffice.org/62070
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 974f3183
......@@ -356,29 +356,14 @@ DdeTopic* DdeInternal::FindTopic( DdeService& rService, HSZ hTopic )
{
std::vector<DdeTopic*>::iterator iter;
std::vector<DdeTopic*> &rTopics = rService.aTopics;
bool bContinue = false;
DdeInstData* pInst = ImpGetInstData();
assert(pInst);
do
{ // middle check loop
for ( iter = rTopics.begin(); iter != rTopics.end(); ++iter )
{
if ( *(*iter)->pName == hTopic )
return *iter;
}
bContinue = !bContinue;
if( !bContinue )
break;
// Let's query our subclass
WCHAR chBuf[250];
DdeQueryStringW(pInst->hDdeInstSvr,hTopic,chBuf,SAL_N_ELEMENTS(chBuf),CP_WINUNICODE );
bContinue = false;
// We need to search again
for ( iter = rTopics.begin(); iter != rTopics.end(); ++iter )
{
if ( *(*iter)->pName == hTopic )
return *iter;
}
while( bContinue );
return nullptr;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment