[Libreoffice-commits] core.git: framework/source

irem iremsendur1 at gmail.com
Sat Feb 20 18:24:06 UTC 2016


 framework/source/uifactory/uielementfactorymanager.cxx |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

New commits:
commit 4bb148e74495b02f65483bd460cab762114177ea
Author: irem <iremsendur1 at gmail.com>
Date:   Tue Feb 2 17:28:32 2016 +0200

    tdf#57950 Replace chained O(U)StringBuffer::append() with operator+
    
    Change-Id: I6e428222bfb3045b6a379716586aa5e37a3cae35
    Reviewed-on: https://gerrit.libreoffice.org/22052
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/framework/source/uifactory/uielementfactorymanager.cxx b/framework/source/uifactory/uielementfactorymanager.cxx
index 23c68f8..dea4253 100644
--- a/framework/source/uifactory/uielementfactorymanager.cxx
+++ b/framework/source/uifactory/uielementfactorymanager.cxx
@@ -56,12 +56,7 @@ namespace framework
 // global function needed by both implementations
 static OUString getHashKeyFromStrings( const OUString& aType, const OUString& aName, const OUString& aModuleName )
 {
-    OUStringBuffer aKey( aType );
-    aKey.append( "^" );
-    aKey.append( aName );
-    aKey.append( "^" );
-    aKey.append( aModuleName );
-    return aKey.makeStringAndClear();
+    return aType + "^" + aName + "^" + aModuleName;
 }
 
 ConfigurationAccess_FactoryManager::ConfigurationAccess_FactoryManager( const Reference< XComponentContext >& rxContext, const OUString& _sRoot ) :


More information about the Libreoffice-commits mailing list