From: Vadim Zeitlin Date: Fri, 22 Oct 1999 11:24:01 +0000 (+0000) Subject: attempt to fix BC++ compilation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0c2b453f0a694284e2582a76923753abf0f316d5?ds=sidebyside;hp=e87271f35887a50e011c7c97fc63c35f5d623e50 attempt to fix BC++ compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dataobj.h b/include/wx/dataobj.h index 045898f553..ae1a30c870 100644 --- a/include/wx/dataobj.h +++ b/include/wx/dataobj.h @@ -83,6 +83,10 @@ public: #include "wx/os2/dataform.h" #endif +// the value for default argument to some functions (corresponds to +// wxDF_INVALID) +extern const wxDataFormat& wxFormatInvalid; + // ---------------------------------------------------------------------------- // wxDataObject represents a piece of data which knows which formats it // supports and knows how to render itself in each of them - GetDataHere(), @@ -183,7 +187,7 @@ class WXDLLEXPORT wxDataObjectSimple : public wxDataObject public: // ctor takes the format we support, but it can also be set later with // SetFormat() - wxDataObjectSimple(const wxDataFormat& format = wxDF_INVALID) + wxDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) : m_format(format) { } @@ -391,7 +395,7 @@ class WXDLLEXPORT wxCustomDataObject : public wxDataObjectSimple public: // if you don't specify the format in the ctor, you can still use // SetFormat() later - wxCustomDataObject(const wxDataFormat& format = wxDF_INVALID); + wxCustomDataObject(const wxDataFormat& format = wxFormatInvalid); // the dtor calls Free() virtual ~wxCustomDataObject(); diff --git a/src/common/dobjcmn.cpp b/src/common/dobjcmn.cpp index 9c5e5ddc39..7ead643ae9 100644 --- a/src/common/dobjcmn.cpp +++ b/src/common/dobjcmn.cpp @@ -42,6 +42,13 @@ WX_DEFINE_LIST(wxSimpleDataObjectList); +// ---------------------------------------------------------------------------- +// globals +// ---------------------------------------------------------------------------- + +static wxDataFormat dataFormatInvalid; +const wxDataFormat& wxFormatInvalid = dataFormatInvalid; + // ============================================================================ // implementation // ============================================================================