diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-06-01 11:47:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-06-01 14:23:17 +0200 |
commit | 8729e89765d548a2d3520f4b5a0fa9a51d33426b (patch) | |
tree | f02042c530a0360705cf30e222c6f89806885bf7 /include | |
parent | f1514f903c2c4b2b199649c472f41573e2c90e49 (diff) |
loplugin:nullptr (clang-cl)
Change-Id: Ic21436a2d71968b8fd01a55fd6c1b7bc07b70451
Reviewed-on: https://gerrit.libreoffice.org/55172
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/windowsdebugoutput.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/comphelper/windowsdebugoutput.hxx b/include/comphelper/windowsdebugoutput.hxx index a09ccd389af2..059dc1358015 100644 --- a/include/comphelper/windowsdebugoutput.hxx +++ b/include/comphelper/windowsdebugoutput.hxx @@ -52,13 +52,13 @@ inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, t std::wstring(pRiid)); DWORD nSize; - if (RegGetValueW(HKEY_CLASSES_ROOT, std::wstring(L"CLSID\\").append(pRiid).data(), NULL, - RRF_RT_REG_SZ, NULL, NULL, &nSize) + if (RegGetValueW(HKEY_CLASSES_ROOT, std::wstring(L"CLSID\\").append(pRiid).data(), nullptr, + RRF_RT_REG_SZ, nullptr, nullptr, &nSize) == ERROR_SUCCESS) { std::vector<wchar_t> sValue(nSize / 2); - if (RegGetValueW(HKEY_CLASSES_ROOT, std::wstring(L"CLSID\\").append(pRiid).data(), NULL, - RRF_RT_REG_SZ, NULL, sValue.data(), &nSize) + if (RegGetValueW(HKEY_CLASSES_ROOT, std::wstring(L"CLSID\\").append(pRiid).data(), nullptr, + RRF_RT_REG_SZ, nullptr, sValue.data(), &nSize) == ERROR_SUCCESS) { stream << "=\"" @@ -68,12 +68,12 @@ inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, t } } else if (RegGetValueW(HKEY_CLASSES_ROOT, std::wstring(L"Interface\\").append(pRiid).data(), - NULL, RRF_RT_REG_SZ, NULL, NULL, &nSize) + nullptr, RRF_RT_REG_SZ, nullptr, nullptr, &nSize) == ERROR_SUCCESS) { std::vector<wchar_t> sValue(nSize / 2); - if (RegGetValueW(HKEY_CLASSES_ROOT, std::wstring(L"Interface\\").append(pRiid).data(), NULL, - RRF_RT_REG_SZ, NULL, sValue.data(), &nSize) + if (RegGetValueW(HKEY_CLASSES_ROOT, std::wstring(L"Interface\\").append(pRiid).data(), + nullptr, RRF_RT_REG_SZ, nullptr, sValue.data(), &nSize) == ERROR_SUCCESS) { stream << "=\"" |