-Werror,-Wunused-but-set-parameter (clang-cl 13 trunk)

...revealing that these places apparently wanted to assign to *pClassID rather
than pClassID ever since their introduction with
b718f390bf "INTEGRATION: CWS desktintgr01" and
9b1b1b0081 "INTEGRATION: CWS desktintgr02"

Change-Id: I672684739fd2722c5e804f47790884174c576369
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117840
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2021-06-25 21:10:28 +02:00
parent c1abdd5ad8
commit 7d5346eb09
2 changed files with 2 additions and 2 deletions
@@ -308,7 +308,7 @@ COM_DECLSPEC_NOTHROW HRESULT STDMETHODCALLTYPE CInfoTip::GetInfoFlags(DWORD * /*
HRESULT STDMETHODCALLTYPE CInfoTip::GetClassID(CLSID* pClassID)
{
pClassID = const_cast<CLSID*>(&CLSID_INFOTIP_HANDLER);
*pClassID = CLSID_INFOTIP_HANDLER;
return S_OK;
}
@@ -470,7 +470,7 @@ HRESULT STDMETHODCALLTYPE CThumbviewer::GetLocation(
HRESULT STDMETHODCALLTYPE CThumbviewer::GetClassID(CLSID* pClassID)
{
pClassID = const_cast<CLSID*>(&CLSID_THUMBVIEWER_HANDLER);
*pClassID = CLSID_THUMBVIEWER_HANDLER;
return S_OK;
}