Kaydet (Commit) 8729e897 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:nullptr (clang-cl)

Change-Id: Ic21436a2d71968b8fd01a55fd6c1b7bc07b70451
Reviewed-on: https://gerrit.libreoffice.org/55172Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst f1514f90
......@@ -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 << "=\""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment