mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[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:
parent
79aaee6aac
commit
24fb46c405
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue