From 05bec2bc26c02177a56df9792b083eb04b99f778 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 8 Nov 2019 10:15:04 +0100 Subject: loplugin:stringadd (clang-cl) Change-Id: Icf2894f77c90aa4620910d621249947bad4be8b7 Reviewed-on: https://gerrit.libreoffice.org/82269 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- vcl/opengl/win/WinDeviceInfo.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'vcl') diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx index b4e9d6db55c3..7dc85bcfddd7 100644 --- a/vcl/opengl/win/WinDeviceInfo.cxx +++ b/vcl/opengl/win/WinDeviceInfo.cxx @@ -649,8 +649,7 @@ void WinOpenGLDeviceInfo::GetData() sizeof(value), nullptr)) { - OUString driverKey("System\\CurrentControlSet\\Control\\Class\\"); - driverKey += o3tl::toU(value); + OUString driverKey(OUStringLiteral("System\\CurrentControlSet\\Control\\Class\\") + o3tl::toU(value)); result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, o3tl::toW(driverKey.getStr()), 0, KEY_QUERY_VALUE, &key); if (result == ERROR_SUCCESS) { @@ -737,8 +736,7 @@ void WinOpenGLDeviceInfo::GetData() sizeof(value), nullptr)) { - OUString driverKey2("System\\CurrentControlSet\\Control\\Class\\"); - driverKey2 += o3tl::toU(value); + OUString driverKey2(OUStringLiteral("System\\CurrentControlSet\\Control\\Class\\") + o3tl::toU(value)); result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, o3tl::toW(driverKey2.getStr()), 0, KEY_QUERY_VALUE, &key); if (result == ERROR_SUCCESS) { -- cgit