summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-06-15 23:35:45 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-06-16 06:32:50 +0200
commit52a2c19fc403affea4e609add8fd3aebe1bbb220 (patch)
tree7c74c9f7579335485f256cd47c07c88323a35ff1 /vcl/win
parentaaf2967d74a9a7ba2d28433e1872422ce38b6244 (diff)
Remove some unneeded casts
This also changes the API used in WriteLibraryToRegistry. Change-Id: Iba4c20567275a64684be8695c771e4c5535956ab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168912 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/window/salframe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index ebcb85f55cff..1661d3408fa8 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -2656,7 +2656,7 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings )
wchar_t aValueBuf[10];
DWORD nValueSize = sizeof( aValueBuf );
if (RegGetValueW(HKEY_CURRENT_USER, L"Control Panel\\Desktop", L"MenuShowDelay",
- RRF_RT_REG_SZ, nullptr, reinterpret_cast<LPVOID>(aValueBuf), &nValueSize)
+ RRF_RT_REG_SZ, nullptr, aValueBuf, &nValueSize)
== ERROR_SUCCESS)
{
aMouseSettings.SetMenuDelay( static_cast<sal_uLong>(ImplW2I( aValueBuf )) );
@@ -2947,7 +2947,7 @@ void WinSalFrame::UpdateSettings( AllSettings& rSettings )
DWORD nValueSize = sizeof( aValueBuf );
if (RegGetValueW(HKEY_CURRENT_USER,
L"Control Panel\\International\\Calendars\\TwoDigitYearMax", L"1",
- RRF_RT_REG_SZ, nullptr, reinterpret_cast<LPVOID>(aValueBuf), &nValueSize)
+ RRF_RT_REG_SZ, nullptr, aValueBuf, &nValueSize)
== ERROR_SUCCESS)
{
DWORD nValue = static_cast<sal_uLong>(ImplW2I(aValueBuf));