[Libreoffice-commits] core.git: connectivity/source vcl/osx

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Oct 21 09:44:34 UTC 2019


 connectivity/source/drivers/macab/MacabDriver.cxx |    6 +-----
 vcl/osx/salframe.cxx                              |    5 +----
 2 files changed, 2 insertions(+), 9 deletions(-)

New commits:
commit 7e4358a0ca2ae798e28b2713248ec77d50fdbdbc
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Oct 21 08:37:03 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Oct 21 11:43:22 2019 +0200

    loplugin:bufferadd (macOS)
    
    Change-Id: I97822e6843d6adef1af2435e186ac93d016e5322
    Reviewed-on: https://gerrit.libreoffice.org/81202
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx b/connectivity/source/drivers/macab/MacabDriver.cxx
index 8b07ebab093c..bebef5591d11 100644
--- a/connectivity/source/drivers/macab/MacabDriver.cxx
+++ b/connectivity/source/drivers/macab/MacabDriver.cxx
@@ -24,7 +24,6 @@
 #include <com/sun/star/sdb/SQLContext.hpp>
 #include <com/sun/star/lang/NullPointerException.hpp>
 #include <com/sun/star/frame/Desktop.hpp>
-#include <rtl/ustrbuf.hxx>
 #include <sal/log.hxx>
 #include <tools/diagnose_ex.h>
 #include <strings.hrc>
@@ -312,10 +311,7 @@ void SAL_CALL MacabDriver::disposing( const EventObject& )
 
 OUString MacabDriver::impl_getConfigurationSettingsPath()
 {
-    OUStringBuffer aPath;
-    aPath.append( "/org.openoffice.Office.DataAccess/DriverSettings/" );
-    aPath.append( "com.sun.star.comp.sdbc.macab.Driver" );
-    return aPath.makeStringAndClear();
+    return "/org.openoffice.Office.DataAccess/DriverSettings/com.sun.star.comp.sdbc.macab.Driver";
 }
 
 Reference< XInterface > MacabDriver::Create( const Reference< XMultiServiceFactory >& _rxFactory )
diff --git a/vcl/osx/salframe.cxx b/vcl/osx/salframe.cxx
index a9ebc417f15b..1bd88a810bc0 100644
--- a/vcl/osx/salframe.cxx
+++ b/vcl/osx/salframe.cxx
@@ -1026,10 +1026,7 @@ OUString AquaSalFrame::GetKeyName( sal_uInt16 nKeyCode )
             aKeyMap[ i ] = OUString( sal_Unicode( '0' + (i - KEY_0) ) );
         for( i = KEY_F1; i <= KEY_F26; i++ )
         {
-            OUStringBuffer aKey( 3 );
-            aKey.append( 'F' );
-            aKey.append( sal_Int32( i - KEY_F1 + 1 ) );
-            aKeyMap[ i ] = aKey.makeStringAndClear();
+            aKeyMap[ i ] = "F" + OUString::number(i - KEY_F1 + 1);
         }
 
         aKeyMap[ KEY_DOWN ]     = OUString( u'\x21e3' );


More information about the Libreoffice-commits mailing list