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

loplugin:unnecessaryoverride, loplugin:cstylecast (clang-cl)

Change-Id: I316965219f70a87b59b731e4d5e6b67d2010c2b9
Reviewed-on: https://gerrit.libreoffice.org/54350Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 8e8c4da1
......@@ -100,7 +100,7 @@ public:
IADsADSystemInfo* pADsys;
HRESULT hr = CoCreateInstance(CLSID_ADSystemInfo, nullptr, CLSCTX_INPROC_SERVER,
IID_IADsADSystemInfo, (void**)&pADsys);
IID_IADsADSystemInfo, reinterpret_cast<void**>(&pADsys));
if (FAILED(hr))
throw css::uno::RuntimeException();
CoIfPtr<IADsADSystemInfo> aADsysGuard(pADsys);
......@@ -116,7 +116,8 @@ public:
m_sUserDN = o3tl::toU(sUserDN);
OUString sLdapUserDN = "LDAP://" + m_sUserDN;
IADsUser* pUser;
hr = ADsGetObject(o3tl::toW(sLdapUserDN.getStr()), IID_IADsUser, (void**)&pUser);
hr = ADsGetObject(o3tl::toW(sLdapUserDN.getStr()), IID_IADsUser,
reinterpret_cast<void**>(&pUser));
if (FAILED(hr))
throw css::uno::RuntimeException();
CoIfPtr<IADsUser> pUserGuard(pUser);
......@@ -145,7 +146,6 @@ public:
GetCachedData(xContext);
}
}
~ADsUserAccess() {}
virtual OUString GetGivenName() override { return m_aMap[givenname]; }
virtual OUString GetSn() override { return m_aMap[sn]; }
......
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