WXCursor m_cursor;
WXDisplay *m_display;
+
+private:
+ // There is no way to copy m_cursor so we can't implement a copy ctor
+ // properly.
+ wxDECLARE_NO_COPY_CLASS(wxCursorRefData);
};
wxCursorRefData::wxCursorRefData()
return new wxCursorRefData;
}
-wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const
+wxGDIRefData *
+wxCursor::CloneGDIRefData(const wxGDIRefData * WXUNUSED(data)) const
{
- return new wxCursorRefData(*static_cast<const wxCursorRefData *>(data));
+ wxFAIL_MSG( wxS("Cloning cursors is not implemented in wxX11.") );
+
+ return new wxCursorRefData;
}
WXCursor wxCursor::GetCursor() const