mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 13:52:37 +00:00
Changes to make the vector<Property> type compile...
This commit is contained in:
parent
56b028c00e
commit
c66d8aa79e
@ -774,7 +774,6 @@ HRESULT STDMETHODCALLTYPE CMozillaBrowser::PutProperty(BSTR szProperty, VARIANT
|
||||
{
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
#if 0 /* XXX */
|
||||
PropertyList::iterator i;
|
||||
for (i = m_PropertyList.begin(); i != m_PropertyList.end(); i++)
|
||||
{
|
||||
@ -792,7 +791,6 @@ HRESULT STDMETHODCALLTYPE CMozillaBrowser::PutProperty(BSTR szProperty, VARIANT
|
||||
p.vValue = vtValue;
|
||||
|
||||
m_PropertyList.push_back(p);
|
||||
#endif /* 0 */
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@ -808,7 +806,6 @@ HRESULT STDMETHODCALLTYPE CMozillaBrowser::GetProperty(BSTR Property, VARIANT __
|
||||
}
|
||||
|
||||
VariantInit(pvtValue);
|
||||
#if 0 /* XXX */
|
||||
PropertyList::iterator i;
|
||||
for (i = m_PropertyList.begin(); i != m_PropertyList.end(); i++)
|
||||
{
|
||||
@ -820,7 +817,6 @@ HRESULT STDMETHODCALLTYPE CMozillaBrowser::GetProperty(BSTR Property, VARIANT __
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
#endif /* 0 */
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,19 @@
|
||||
// so don't edit it!
|
||||
#include "CPMozillaControl.h"
|
||||
|
||||
// Named property
|
||||
struct Property
|
||||
{
|
||||
CComBSTR szName;
|
||||
CComVariant vValue;
|
||||
};
|
||||
// These operators are not implemented anywhere. They only need to be
|
||||
// defined in order for the compiler to accept the vector<Property>
|
||||
// template...
|
||||
int operator <(const Property&, const Property&);
|
||||
int operator ==(const Property&, const Property&);
|
||||
typedef std::vector<Property> PropertyList;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CMozillaBrowser
|
||||
class ATL_NO_VTABLE CMozillaBrowser :
|
||||
@ -116,19 +129,17 @@ protected:
|
||||
|
||||
// Indicates the browser is busy doing something
|
||||
BOOL m_bBusy;
|
||||
|
||||
#if 0 /* XXX: this breaks the build :-( */
|
||||
// Named property
|
||||
struct Property
|
||||
{
|
||||
CComBSTR szName;
|
||||
CComVariant vValue;
|
||||
};
|
||||
#if 0 /* XXX: this breaks the build :-( */
|
||||
typedef std::vector<Property> PropertyList;
|
||||
|
||||
#endif
|
||||
// Property list
|
||||
PropertyList m_PropertyList;
|
||||
#endif /* 0 */
|
||||
virtual HRESULT CreateWebShell();
|
||||
virtual BOOL IsValid();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user