mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[ATL] Add some hacks for gcc,
since parsing templates is not something it can do
This commit is contained in:
parent
4439b53800
commit
1437433039
2 changed files with 11 additions and 1 deletions
|
@ -456,7 +456,7 @@ class CComCreator2
|
|||
public:
|
||||
static HRESULT WINAPI CreateInstance(void *pv, REFIID riid, LPVOID *ppv)
|
||||
{
|
||||
ATLASSERT(ppv != NULL && riid != NULL);
|
||||
ATLASSERT(ppv != NULL && &riid != NULL);
|
||||
|
||||
if (pv == NULL)
|
||||
return T1::CreateInstance(NULL, riid, ppv);
|
||||
|
|
|
@ -1465,6 +1465,7 @@ public:
|
|||
// + Hacks for gcc
|
||||
using CWindowImplRoot<TBase>::WINSTATE_DESTROYED;
|
||||
using CWindowImplRoot<TBase>::m_thunk;
|
||||
using CWindowImplRoot<TBase>::m_hWnd;
|
||||
// - Hacks for gcc
|
||||
|
||||
WNDPROC m_pfnSuperWindowProc;
|
||||
|
@ -1623,6 +1624,11 @@ template <class T, class TBase = CWindow, class TWinTraits = CControlWinTraits>
|
|||
class CWindowImpl : public CWindowImplBaseT<TBase, TWinTraits>
|
||||
{
|
||||
public:
|
||||
// + Hacks for gcc
|
||||
using CWindowImplRoot<TBase>::m_hWnd;
|
||||
// - Hacks for gcc
|
||||
|
||||
|
||||
static LPCTSTR GetWndCaption()
|
||||
{
|
||||
return NULL;
|
||||
|
@ -1655,6 +1661,10 @@ template <class TBase = CWindow, class TWinTraits = CControlWinTraits>
|
|||
class CContainedWindowT : public TBase
|
||||
{
|
||||
public:
|
||||
// + Hacks for gcc
|
||||
using TBase::m_hWnd;
|
||||
// - Hacks for gcc
|
||||
|
||||
CWndProcThunk m_thunk;
|
||||
LPCTSTR m_lpszClassName;
|
||||
WNDPROC m_pfnSuperWindowProc;
|
||||
|
|
Loading…
Reference in a new issue