[Libreoffice-commits] .: 2 commits - binfilter/bf_svtools binfilter/bf_sw

Caolán McNamara caolan at kemper.freedesktop.org
Mon Feb 13 03:29:30 PST 2012


 binfilter/bf_svtools/source/svdde/svt_ddesvr.cxx |   18 +++++++++---------
 binfilter/bf_sw/source/core/inc/swcache.hxx      |    2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 29eeaf67aac144238cc6f28b7af66ac2e63e9a7c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Feb 13 11:29:24 2012 +0000

    fix windows ambiguities post binfilter-string move

diff --git a/binfilter/bf_svtools/source/svdde/svt_ddesvr.cxx b/binfilter/bf_svtools/source/svdde/svt_ddesvr.cxx
index 65babe6..7634440 100644
--- a/binfilter/bf_svtools/source/svdde/svt_ddesvr.cxx
+++ b/binfilter/bf_svtools/source/svdde/svt_ddesvr.cxx
@@ -108,7 +108,7 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback(
                             USHORT n = 0;
                             while( STRING_NOTFOUND != n )
                             {
-                                String s( sTopics.GetToken( 0, '\t', n ));
+                                rtl::OUString s( sTopics.GetToken( 0, '\t', n ));
                                 if( s == reinterpret_cast<const sal_Unicode*>(chTopicBuf) )
                                     ++nTopics;
                             }
@@ -138,7 +138,7 @@ HDDEDATA CALLBACK _export DdeInternal::SvrCallback(
                         String s( sTopics.GetToken( 0, '\t', n ));
                         s = comphelper::string::remove(s, '\n');
                         s = comphelper::string::remove(s, '\r');
-                        if( !hText1 || s == reinterpret_cast<const sal_Unicode*>(chTopicBuf) )
+                        if( !hText1 || s == String(reinterpret_cast<const sal_Unicode*>(chTopicBuf)) )
                         {
                             DdeString aDStr( pInst->hDdeInstSvr, s );
                             pTopic = FindTopic( *pService, (HSZ)aDStr );
@@ -238,15 +238,15 @@ found:
             String aRes;          // darf erst am Ende freigegeben werden!!
             if ( pTopic->IsSystemTopic() )
             {
-                if ( pTopic->aItem == reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_TOPICS) )
+                if ( pTopic->aItem == String(reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_TOPICS)) )
                     aRes = pService->Topics();
-                else if ( pTopic->aItem == reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_SYSITEMS) )
+                else if ( pTopic->aItem == String(reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_SYSITEMS)) )
                     aRes = pService->SysItems();
-                else if ( pTopic->aItem == reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_STATUS) )
+                else if ( pTopic->aItem == String(reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_STATUS)) )
                     aRes = pService->Status();
-                else if ( pTopic->aItem == reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_FORMATS) )
+                else if ( pTopic->aItem == String(reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_FORMATS)) )
                     aRes = pService->Formats();
-                else if ( pTopic->aItem ==  reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_HELP) )
+                else if ( pTopic->aItem ==  String(reinterpret_cast<const sal_Unicode*>(SZDDESYS_ITEM_HELP)) )
                     aRes = pService->GetHelp();
                 else
                     aRes = pService->SysTopicGet( pTopic->aItem );
@@ -619,7 +619,7 @@ const String& DdeTopic::GetName() const
 
 BOOL DdeTopic::IsSystemTopic()
 {
-    return BOOL (GetName() == reinterpret_cast<const sal_Unicode*>(SZDDESYS_TOPIC));
+    return BOOL (GetName() == String(reinterpret_cast<const sal_Unicode*>(SZDDESYS_TOPIC)));
 }
 
 // --- DdeTopic::AddItem() -----------------------------------------
@@ -913,7 +913,7 @@ String DdeService::SysItems()
     DdeTopic* t;
     for ( t = aTopics.First(); t; t = aTopics.Next() )
     {
-        if ( t->GetName() == reinterpret_cast<const sal_Unicode*>(SZDDESYS_TOPIC) )
+        if ( t->GetName() == String(reinterpret_cast<const sal_Unicode*>(SZDDESYS_TOPIC)) )
         {
             short n = 0;
             DdeItem* pi;
commit 101a6853e968e22187c4d2aba395ff13e76ae7d7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Feb 13 11:09:45 2012 +0000

    WaE: need a virtual dtor

diff --git a/binfilter/bf_sw/source/core/inc/swcache.hxx b/binfilter/bf_sw/source/core/inc/swcache.hxx
index e706781..b1c6048 100644
--- a/binfilter/bf_sw/source/core/inc/swcache.hxx
+++ b/binfilter/bf_sw/source/core/inc/swcache.hxx
@@ -220,7 +220,7 @@ protected:
     inline SwCacheAccess( SwCache &rCache, const void *pOwner, const USHORT nIndex );
 
 public:
-    ~SwCacheAccess() { if ( pObj ) pObj->Unlock(); }
+    virtual ~SwCacheAccess() { if ( pObj ) pObj->Unlock(); }
 
 
     //Abkuerzung fuer diejenigen, die wissen, das die Ableitung das IsAvailable


More information about the Libreoffice-commits mailing list