summaryrefslogtreecommitdiff
path: root/vcl/opengl/win/WinDeviceInfo.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-03 14:04:23 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-03 14:04:23 +0200
commitd6b625058404cfc0bbccf8180c27419812f8d7ba (patch)
tree23c6f2199cc87efef37ff4f15beb1598b6d3bc7d /vcl/opengl/win/WinDeviceInfo.cxx
parent1e5e504b2f88fb29a823663fae505863ac00f593 (diff)
loplugin:oncevar (clang-cl): vcl
Change-Id: I0459978c2cfb61cd7251f0e8d9a30f1f19c02c11
Diffstat (limited to 'vcl/opengl/win/WinDeviceInfo.cxx')
-rw-r--r--vcl/opengl/win/WinDeviceInfo.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx
index 8dfca479626b..383cce8d6b98 100644
--- a/vcl/opengl/win/WinDeviceInfo.cxx
+++ b/vcl/opengl/win/WinDeviceInfo.cxx
@@ -626,7 +626,6 @@ void WinOpenGLDeviceInfo::GetData()
DWORD memberIndex = 0;
devinfoData.cbSize = sizeof(devinfoData);
- OUString aDriverKeyPre("System\\CurrentControlSet\\Control\\Class\\");
/* enumerate device information elements in the device information set */
while (SetupDiEnumDeviceInfo(devinfo, memberIndex++, &devinfoData))
{
@@ -639,7 +638,7 @@ void WinOpenGLDeviceInfo::GetData()
sizeof(value),
nullptr))
{
- OUString driverKey(aDriverKeyPre);
+ OUString driverKey("System\\CurrentControlSet\\Control\\Class\\");
driverKey += SAL_U(value);
result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, SAL_W(driverKey.getStr()), 0, KEY_QUERY_VALUE, &key);
if (result == ERROR_SUCCESS)
@@ -715,7 +714,6 @@ void WinOpenGLDeviceInfo::GetData()
uint32_t adapterVendorID2;
uint32_t adapterDeviceID2;
- OUString aDriverKeyPre("System\\CurrentControlSet\\Control\\Class\\");
/* enumerate device information elements in the device information set */
while (SetupDiEnumDeviceInfo(devinfo, memberIndex++, &devinfoData))
{
@@ -728,7 +726,7 @@ void WinOpenGLDeviceInfo::GetData()
sizeof(value),
nullptr))
{
- OUString driverKey2(aDriverKeyPre);
+ OUString driverKey2("System\\CurrentControlSet\\Control\\Class\\");
driverKey2 += SAL_U(value);
result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, SAL_W(driverKey2.getStr()), 0, KEY_QUERY_VALUE, &key);
if (result == ERROR_SUCCESS)