diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-10-23 17:47:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-23 21:04:47 +0200 |
commit | f573b1affdd7fd543eb25139620a82f72e0419a4 (patch) | |
tree | 9bc5f311de6a3867829a43ae9fd61ce53e1d4d3d /vcl/win | |
parent | 8c28f11a7ecfb2ae85bd7c07d20032eb1c4c0dd9 (diff) |
loplugin:bufferadd (clang-cl)
Change-Id: I854e1d4e6acef1c59842fe3921a42e95d0c8fd38
Reviewed-on: https://gerrit.libreoffice.org/81407
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/app/salinfo.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/win/app/salinfo.cxx b/vcl/win/app/salinfo.cxx index 90fa81b04d0e..ccb6d3806f95 100644 --- a/vcl/win/app/salinfo.cxx +++ b/vcl/win/app/salinfo.cxx @@ -18,7 +18,6 @@ */ #include <svsys.h> -#include <rtl/ustrbuf.hxx> #include <o3tl/char16_t2wchar_t.hxx> #include <vcl/window.hxx> @@ -133,12 +132,7 @@ bool WinSalSystem::initMonitors() if( aDeviceStringCount[ rDev ] > 1 ) { int nInstance = aDeviceStringCount[ rDev ] - (-- aDevCount[ rDev ] ); - OUStringBuffer aBuf( rDev.getLength() + 8 ); - aBuf.append( rDev ); - aBuf.append( " (" ); - aBuf.append( sal_Int32( nInstance ) ); - aBuf.append( ')' ); - m_aMonitors[ i ].m_aName = aBuf.makeStringAndClear(); + m_aMonitors[ i ].m_aName = rDev + " (" + OUString::number( nInstance ) + ")"; } } } |