compile fix for VC++ 5

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-11-06 19:46:06 +00:00
parent 106f039552
commit f3ac12aa7a

View File

@@ -301,9 +301,13 @@ bool wxCustomDataObject::SetData(size_t size, const void *buf)
// wxTextDropTarget // wxTextDropTarget
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// NB: we can't use "new" in ctor initializer lists because this provokes an
// internal compiler error with VC++ 5.0 (hey, even gcc compiles this!),
// so use SetDataObject() instead
wxTextDropTarget::wxTextDropTarget() wxTextDropTarget::wxTextDropTarget()
: wxDropTarget(new wxTextDataObject)
{ {
SetDataObject(new wxTextDataObject);
} }
wxDragResult wxTextDropTarget::OnData(wxCoord x, wxCoord y, wxDragResult def) wxDragResult wxTextDropTarget::OnData(wxCoord x, wxCoord y, wxDragResult def)
@@ -320,8 +324,8 @@ wxDragResult wxTextDropTarget::OnData(wxCoord x, wxCoord y, wxDragResult def)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
wxFileDropTarget::wxFileDropTarget() wxFileDropTarget::wxFileDropTarget()
: wxDropTarget(new wxFileDataObject)
{ {
SetDataObject(new wxFileDataObject);
} }
wxDragResult wxFileDropTarget::OnData(wxCoord x, wxCoord y, wxDragResult def) wxDragResult wxFileDropTarget::OnData(wxCoord x, wxCoord y, wxDragResult def)