[ACPPAGE] Use STDMETHOD macro and keyword override (#6567)

For simplicity and short typing.
JIRA issue: CORE-19469
- Replace "virtual HRESULT STDMETHODCALLTYPE
  m" with "STDMETHOD(m)" (m is a method name).
- Replace "virtual t STDMETHODCALLTYPE m" with
  "STDMETHOD_(t, m)" (t is a type. m is a method
  name).
- Use "override" keyword as possible.
This commit is contained in:
Katayama Hirofumi MZ 2024-03-02 21:37:05 +09:00 committed by GitHub
parent 79aaee6aac
commit 24fb46c405
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ public:
SdbCloseDatabase(m_db);
}
virtual HRESULT STDMETHODCALLTYPE Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched)
STDMETHOD(Next)(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched) override
{
if (pceltFetched)
*pceltFetched = 0;
@ -58,7 +58,7 @@ public:
return celt ? S_FALSE : S_OK;
}
virtual HRESULT STDMETHODCALLTYPE Skip(ULONG celt)
STDMETHOD(Skip)(ULONG celt) override
{
while (m_layer && celt)
{
@ -68,7 +68,7 @@ public:
return celt ? S_FALSE : S_OK;
}
virtual HRESULT STDMETHODCALLTYPE Reset()
STDMETHOD(Reset)() override
{
m_root = m_layer = TAGID_NULL;
if (m_db)
@ -83,7 +83,7 @@ public:
return E_FAIL;
}
virtual HRESULT STDMETHODCALLTYPE Clone(IEnumString **ppenum)
STDMETHOD(Clone)(IEnumString **ppenum) override
{
return E_NOTIMPL;
}