Make CreateDataObject() return wxDataObjectComposite
This function must return a composite data object and not just any wxDataObject because its callers cast the returned object to this class, so make it a bit more type-safe.
This commit is contained in:
@@ -809,7 +809,8 @@ protected:
|
||||
// Helper function which can be used by DoEnableDropTarget() implementations
|
||||
// in the derived classes: return a composite data object supporting the
|
||||
// given formats or null if the vector is empty.
|
||||
static wxDataObject* CreateDataObject(const wxVector<wxDataFormat>& formats);
|
||||
static wxDataObjectComposite*
|
||||
CreateDataObject(const wxVector<wxDataFormat>& formats);
|
||||
|
||||
virtual bool DoEnableDropTarget(const wxVector<wxDataFormat>& WXUNUSED(formats))
|
||||
{ return false; }
|
||||
|
||||
Reference in New Issue
Block a user