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 <sberg...@redhat.com> AuthorDate: Mon Oct 21 08:37:03 2019 +0200 Commit: Stephan Bergmann <sberg...@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 <sberg...@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' ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits