Changeset 60701 in vbox for trunk/include/VBox/com
- Timestamp:
- Apr 26, 2016 9:42:13 AM (9 years ago)
- Location:
- trunk/include/VBox/com
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/array.h
r60079 r60701 4 4 5 5 /* 6 * Copyright (C) 2006-201 5Oracle Corporation6 * Copyright (C) 2006-2016 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1536 1536 { 1537 1537 NOREF(aVarType); 1538 return SafeArrayCreateEx(VT_DISPATCH, 1, aBound, (PVOID)& _ATL_IIDOF(I));1538 return SafeArrayCreateEx(VT_DISPATCH, 1, aBound, (PVOID)&COM_IIDOF(I)); 1539 1539 } 1540 1540 }; … … 1617 1617 rc = SafeArrayGetIID(arg, &guid); 1618 1618 AssertComRCReturnVoid(rc); 1619 AssertMsgReturnVoid(InlineIsEqualGUID( _ATL_IIDOF(I), guid),1619 AssertMsgReturnVoid(InlineIsEqualGUID(COM_IIDOF(I), guid), 1620 1620 ("Expected IID {%RTuuid}, got {%RTuuid}.\n", 1621 & _ATL_IIDOF(I), &guid));1621 &COM_IIDOF(I), &guid)); 1622 1622 1623 1623 rc = SafeArrayAccessData(arg, (void HUGEP **)&m.raw); -
trunk/include/VBox/com/listeners.h
r58110 r60701 5 5 6 6 /* 7 * Copyright (C) 2010-201 5Oracle Corporation7 * Copyright (C) 2010-2016 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 56 56 template <class T, class TParam = void *> 57 57 class ListenerImpl : 58 public CComObjectRootEx<CComMultiThreadModel>,58 public ATL::CComObjectRootEx<ATL::CComMultiThreadModel>, 59 59 VBOX_SCRIPTABLE_IMPL(IEventListener) 60 60 { 61 T* 61 T* mListener; 62 62 63 63 #ifdef RT_OS_WINDOWS 64 64 /* FTM stuff */ 65 C ComPtr <IUnknown>m_pUnkMarshaler;65 ComPtr<IUnknown> m_pUnkMarshaler; 66 66 #else 67 67 nsAutoRefCnt mRefCnt; … … 103 103 { 104 104 #ifdef RT_OS_WINDOWS 105 return CoCreateFreeThreadedMarshaler(this, &m_pUnkMarshaler. p);105 return CoCreateFreeThreadedMarshaler(this, &m_pUnkMarshaler.m_p); 106 106 #else 107 107 return S_OK; … … 113 113 uninit(); 114 114 #ifdef RT_OS_WINDOWS 115 m_pUnkMarshaler. Release();115 m_pUnkMarshaler.setNull(); 116 116 #endif 117 117 } … … 130 130 COM_INTERFACE_ENTRY(IEventListener) 131 131 COM_INTERFACE_ENTRY2(IDispatch, IEventListener) 132 COM_INTERFACE_ENTRY_AGGREGATE(IID_IMarshal, m_pUnkMarshaler. p)132 COM_INTERFACE_ENTRY_AGGREGATE(IID_IMarshal, m_pUnkMarshaler.m_p) 133 133 END_COM_MAP() 134 134 #else
Note:
See TracChangeset
for help on using the changeset viewer.