diff options
Diffstat (limited to 'jvmfwk/source/fwkutil.cxx')
-rw-r--r-- | jvmfwk/source/fwkutil.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx index 8bbcf60a7cea..a77727865d17 100644 --- a/jvmfwk/source/fwkutil.cxx +++ b/jvmfwk/source/fwkutil.cxx @@ -63,7 +63,7 @@ bool isAccessibilitySupportDesired() #ifdef _WIN32 bool retVal = false; - HKEY hKey = 0; + HKEY hKey = nullptr; if (RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\LibreOffice\\Accessibility\\AtToolSupport", 0, KEY_READ, &hKey) == ERROR_SUCCESS) @@ -71,16 +71,16 @@ bool isAccessibilitySupportDesired() DWORD dwType = 0; DWORD dwLen = 16; unsigned char arData[16]; - if( RegQueryValueEx(hKey, "SupportAssistiveTechnology", NULL, &dwType, arData, + if( RegQueryValueEx(hKey, "SupportAssistiveTechnology", nullptr, &dwType, arData, & dwLen)== ERROR_SUCCESS) { if (dwType == REG_SZ) { - if (strcmp((char*) arData, "true") == 0 - || strcmp((char*) arData, "1") == 0) + if (strcmp(reinterpret_cast<char*>(arData), "true") == 0 + || strcmp(reinterpret_cast<char*>(arData), "1") == 0) retVal = true; - else if (strcmp((char*) arData, "false") == 0 - || strcmp((char*) arData, "0") == 0) + else if (strcmp(reinterpret_cast<char*>(arData), "false") == 0 + || strcmp(reinterpret_cast<char*>(arData), "0") == 0) retVal = false; else SAL_WARN("jfw", "bad registry value " << arData); |