summaryrefslogtreecommitdiff
path: root/svl/source/svdde
diff options
context:
space:
mode:
authorPhilipp Weissenbacher <p.weissenbacher@gmail.com>2014-07-25 15:41:58 +0200
committerEike Rathke <erack@redhat.com>2014-07-25 17:10:49 +0000
commita120f1da67083a5d95b304833996b06c1a737f13 (patch)
tree165298ab9d5732595d1f99cb35068b083ed4c19e /svl/source/svdde
parent8a690c88a92c7e92c702cedf96851ae1eb929379 (diff)
fdo#39468 Make svl/ German comment clean
I went through all files manually and checked with the tool. Change-Id: I2eba5e61a0814dd88d7c2c001cd85db8032f1b9f Reviewed-on: https://gerrit.libreoffice.org/10545 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svl/source/svdde')
-rw-r--r--svl/source/svdde/ddedata.cxx7
-rw-r--r--svl/source/svdde/ddesvr.cxx33
2 files changed, 16 insertions, 24 deletions
diff --git a/svl/source/svdde/ddedata.cxx b/svl/source/svdde/ddedata.cxx
index 4c9e465f572f..85c60ac99a1f 100644
--- a/svl/source/svdde/ddedata.cxx
+++ b/svl/source/svdde/ddedata.cxx
@@ -18,10 +18,9 @@
*/
-// ACHTUNG: es wird angenommen, dass StarView-Clipboard-Foamatnummern
-// und Windows-Formatnummern identisch sind! Ist dies einmal nicht der
-// Fall, muessen die Routinen hier angepasst werden. Die Implementation
-// verwendet die hier defineirten Konversionen.
+// ATTENTION: We assume StarView Clipboard format numbers and Windows
+// Format numbers to be the same! If that's not the case, we need to
+// adapt the code here. The implementation uses the conversions here.
#define UNICODE
diff --git a/svl/source/svdde/ddesvr.cxx b/svl/source/svdde/ddesvr.cxx
index ecce24a15644..2fb7bee1b382 100644
--- a/svl/source/svdde/ddesvr.cxx
+++ b/svl/source/svdde/ddesvr.cxx
@@ -222,7 +222,7 @@ found:
case XTYP_REQUEST:
case XTYP_ADVREQ:
{
- OUString aRes; // darf erst am Ende freigegeben werden!!
+ OUString aRes; // Must be free not until the end!
if ( pTopic->IsSystemTopic() )
{
if ( pTopic->aItem == reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_TOPICS) )
@@ -285,10 +285,10 @@ found:
case XTYP_ADVSTART:
{
- // wird das Item zum erstenmal ein HotLink ?
+ // Is the Item turning into a HotLink for the first time?
if( !pItem->pImpData && pTopic->StartAdviseLoop() )
{
- // dann wurde das Item ausgewechselt
+ // Then the Item has been exchanged
std::vector<DdeItem*>::iterator it(std::find(pTopic->aItems.begin(),
pTopic->aItems.end(),
pItem));
@@ -302,7 +302,7 @@ found:
{
if( *(*iter)->pName == hText2 )
{
- // es wurde tatsaechlich ausgewechselt
+ // It was exchanged indeed
delete pItem;
pItem = 0;
break;
@@ -310,7 +310,7 @@ found:
}
if( pItem )
- // es wurde doch nicht ausgewechselt, also wieder rein
+ // It was not exchange, so back in
pTopic->aItems.push_back(pItem);
else
pItem = iter != pTopic->aItems.end() ? *iter : NULL;
@@ -383,7 +383,7 @@ DdeTopic* DdeInternal::FindTopic( DdeService& rService, HSZ hTopic )
DBG_ASSERT(pInst,"SVDDE:No instance data");
do
- { // middle check loop
+ { // middle check loop
for ( iter = rTopics.begin(); iter != rTopics.end(); ++iter )
{
if ( *(*iter)->pName == hTopic )
@@ -394,11 +394,11 @@ DdeTopic* DdeInternal::FindTopic( DdeService& rService, HSZ hTopic )
if( !bContinue )
break;
- // dann befragen wir doch mal unsere Ableitung:
+ // Let's query our subclass
TCHAR chBuf[250];
DdeQueryString(pInst->hDdeInstSvr,hTopic,chBuf,sizeof(chBuf)/sizeof(TCHAR),CP_WINUNICODE );
bContinue = rService.MakeTopic( reinterpret_cast<const sal_Unicode*>(chBuf) );
- // dann muessen wir noch mal suchen
+ // We need to search again
}
while( bContinue );
@@ -416,8 +416,7 @@ DdeItem* DdeInternal::FindItem( DdeTopic& rTopic, HSZ hItem )
bool bContinue = false;
do
- { // middle check loop
-
+ { // middle check loop
for ( iter = rItems.begin(); iter != rItems.end(); ++iter )
{
if ( *(*iter)->pName == hItem )
@@ -427,11 +426,11 @@ DdeItem* DdeInternal::FindItem( DdeTopic& rTopic, HSZ hItem )
if( !bContinue )
break;
- // dann befragen wir doch mal unsere Ableitung:
+ // Let's query our subclass
TCHAR chBuf[250];
DdeQueryString(pInst->hDdeInstSvr,hItem,chBuf,sizeof(chBuf)/sizeof(TCHAR),CP_WINUNICODE );
bContinue = rTopic.MakeItem( reinterpret_cast<const sal_Unicode*>(chBuf) );
- // dann muessen wir noch mal suchen
+ // We need to search again
}
while( bContinue );
@@ -494,12 +493,6 @@ DdeService::~DdeService()
if ( pInst->pServicesSvr )
pInst->pServicesSvr->erase(std::remove(pInst->pServicesSvr->begin(), pInst->pServicesSvr->end(), this), pInst->pServicesSvr->end());
- // MT: Im Auftrage des Herrn (AM) auskommentiert...
- // Grund:
- // Bei Client/Server werden die Server nicht beendet, wenn mehr
- // als einer gestartet.
- // Weil keine System-Messagequeue ?!
-
delete pSysTopic;
delete pName;
@@ -553,8 +546,8 @@ void DdeService::RemoveTopic( const DdeTopic& rTopic )
if ( !DdeCmpStringHandles (*(*iter)->pName, *rTopic.pName ) )
{
aTopics.erase(iter);
- // JP 27.07.95: und alle Conversions loeschen !!!
- // (sonst wird auf geloeschten Topics gearbeitet!!)
+ // Delete all conversions!
+ // Or else we work on deleted topics!
for( size_t n = pConv->size(); n; )
{
Conversation* pC = (*pConv)[ --n ];