summaryrefslogtreecommitdiff
path: root/svl/source/svdde
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2012-07-31 22:30:34 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-07-31 22:30:34 +0200
commit8df3fbe5249c3f4a1ea3d5586b5c073d5a756fb0 (patch)
tree28172c2708f08e6afe34771c169cbac998e7cc51 /svl/source/svdde
parent68303dee45ff6c81f5eb396df9c6805b7874cdd7 (diff)
Fix mingw build of svl
Change-Id: I9992dba75903fea3d31be73de69e49f439df3a41
Diffstat (limited to 'svl/source/svdde')
-rw-r--r--svl/source/svdde/ddesvr.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx
index dadba4504e16..25cc3cf2b632 100644
--- a/svl/source/svdde/ddesvr.cxx
+++ b/svl/source/svdde/ddesvr.cxx
@@ -82,8 +82,9 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback(
DdeQueryString( pInst->hDdeInstSvr, hText1, chTopicBuf,
sizeof(chTopicBuf)/sizeof(TCHAR), CP_WINUNICODE );
- for( pService = rAll.First();pService;pService = rAll.Next() )
+ for (DdeServices::iterator aI = rAll.begin(); aI != rAll.end(); ++aI)
{
+ pService = *aI;
if ( !hText2 || ( *pService->pName == hText2 ) )
{
String sTopics( pService->Topics() );
@@ -113,8 +114,9 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback(
return (HDDEDATA)NULL;
HSZPAIR* q = pPairs;
- for( pService = rAll.First(); pService; pService = rAll.Next() )
+ for (DdeServices::iterator aI = rAll.begin(); aI != rAll.end(); ++aI)
{
+ pService = *aI;
if ( !hText2 || (*pService->pName == hText2 ) )
{
String sTopics( pService->Topics() );
@@ -177,8 +179,9 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback(
return (HDDEDATA)NULL;
}
- for ( pService = rAll.First(); pService; pService = rAll.Next() )
+ for (DdeServices::iterator aI = rAll.begin(); aI != rAll.end(); ++aI)
{
+ pService = *aI;
for ( size_t i = 0, n = pService->pConv->size(); i < n; ++i )
{
pC = (*pService->pConv)[ i ];
@@ -365,8 +368,9 @@ DdeService* DdeInternal::FindService( HSZ hService )
{
DdeService* s;
DdeServices& rSvc = DdeService::GetServices();
- for ( s = rSvc.First(); s; s = rSvc.Next() )
+ for (DdeServices::iterator aI = rSvc.begin(); aI != rSvc.end(); ++aI)
{
+ s = *aI;
if ( *s->pName == hService )
return s;
}
@@ -1033,7 +1037,7 @@ String DdeService::Formats()
{
TCHAR buf[128];
GetClipboardFormatName( (UINT)f, buf, sizeof(buf) / sizeof(TCHAR) );
- s += rtl::OUString(buf);
+ s += rtl::OUString(reinterpret_cast<sal_Unicode*>(buf));
}
break;
}