(blind) gcc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,6 +73,12 @@ class wxIEnumFORMATETC : public IEnumFORMATETC
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxIEnumFORMATETC(const wxDataFormat* formats, ULONG nCount);
|
wxIEnumFORMATETC(const wxDataFormat* formats, ULONG nCount);
|
||||||
|
|
||||||
|
// to suppress the gcc warning about "class has virtual functions but non
|
||||||
|
// virtual dtor"
|
||||||
|
#ifdef __GNUG__
|
||||||
|
virtual
|
||||||
|
#endif
|
||||||
~wxIEnumFORMATETC() { delete [] m_formats; }
|
~wxIEnumFORMATETC() { delete [] m_formats; }
|
||||||
|
|
||||||
DECLARE_IUNKNOWN_METHODS;
|
DECLARE_IUNKNOWN_METHODS;
|
||||||
@@ -97,6 +103,12 @@ class wxIDataObject : public IDataObject
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxIDataObject(wxDataObject *pDataObject);
|
wxIDataObject(wxDataObject *pDataObject);
|
||||||
|
|
||||||
|
// to suppress the gcc warning about "class has virtual functions but non
|
||||||
|
// virtual dtor"
|
||||||
|
#ifdef __GNUG__
|
||||||
|
virtual
|
||||||
|
#endif
|
||||||
~wxIDataObject();
|
~wxIDataObject();
|
||||||
|
|
||||||
// normally, wxDataObject controls our lifetime (i.e. we're deleted when it
|
// normally, wxDataObject controls our lifetime (i.e. we're deleted when it
|
||||||
@@ -702,10 +714,10 @@ const char *wxDataObject::GetFormatName(wxDataFormat format)
|
|||||||
case CF_LOCALE: return "CF_LOCALE";
|
case CF_LOCALE: return "CF_LOCALE";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if ( !GetClipboardFormatName(format, s_szBuf, WXSIZEOF(s_szBuf)) )
|
if ( !::GetClipboardFormatName(format, s_szBuf, WXSIZEOF(s_szBuf)) )
|
||||||
{
|
{
|
||||||
// it must be a new predefined format we don't know the name of
|
// it must be a new predefined format we don't know the name of
|
||||||
sprintf(s_szBuf, "unknown CF (0x%04x)", format);
|
sprintf(s_szBuf, "unknown CF (0x%04x)", format.GetFormatId());
|
||||||
}
|
}
|
||||||
|
|
||||||
return s_szBuf;
|
return s_szBuf;
|
||||||
|
Reference in New Issue
Block a user