[Libreoffice-commits] .: scripting/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Nov 28 11:49:48 PST 2012


 scripting/source/provider/ProviderCache.cxx        |    2 +-
 scripting/source/stringresource/stringresource.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 60e7472b9dcaffb8ca04f9dba7ee04d7a3e7513c
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Nov 28 21:49:00 2012 +0200

    OUString::concat() does not modify in-place
    
    Change-Id: I298f33a23e44146d7ce5fbf72d176020804e03d6

diff --git a/scripting/source/provider/ProviderCache.cxx b/scripting/source/provider/ProviderCache.cxx
index 0b65ffa..09e760e 100644
--- a/scripting/source/provider/ProviderCache.cxx
+++ b/scripting/source/provider/ProviderCache.cxx
@@ -176,7 +176,7 @@ ProviderCache::populateCache() throw ( RuntimeException )
     {
         ::rtl::OUString temp = OUSTR(
             "ProviderCache::populateCache: couldn't obtain XSingleComponentFactory for " );
-        temp.concat( serviceName );
+        temp = temp.concat( serviceName );
         throw RuntimeException( temp.concat( e.Message ), Reference< XInterface >() );
     }
 }
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 0086ea9..1b30c81 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -200,7 +200,7 @@ void StringResourceImpl::removeModifyListener( const Reference< XModifyListener
     if( !bSuccess )
     {
         ::rtl::OUString errorMsg("StringResourceImpl: No entry for ResourceID: ");
-        errorMsg.concat( ResourceID );
+        errorMsg = errorMsg.concat( ResourceID );
         throw ::com::sun::star::resource::MissingResourceException( errorMsg, Reference< XInterface >() );
     }
     return aRetStr;
@@ -448,7 +448,7 @@ void StringResourceImpl::implRemoveId( const ::rtl::OUString& ResourceID, Locale
         if( it == rHashMap.end() )
         {
             ::rtl::OUString errorMsg("StringResourceImpl: No entries for ResourceID: ");
-            errorMsg.concat( ResourceID );
+            errorMsg = errorMsg.concat( ResourceID );
             throw ::com::sun::star::resource::MissingResourceException( errorMsg, Reference< XInterface >() );
         }
         rHashMap.erase( it );


More information about the Libreoffice-commits mailing list