virtual ~wxCursorRefData();
GdkCursor *m_cursor;
+
+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()
{
- m_cursor = (GdkCursor *) NULL;
+ m_cursor = NULL;
}
wxCursorRefData::~wxCursorRefData()
return new wxCursorRefData;
}
-wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const
+wxGDIRefData *
+wxCursor::CloneGDIRefData(const wxGDIRefData * WXUNUSED(data)) const
{
- return new wxCursorRefData(*wx_static_cast(const wxCursorRefData *, data));
+ wxFAIL_MSG( wxS("Cloning cursors is not implemented in wxGTK.") );
+
+ return new wxCursorRefData;
}
//-----------------------------------------------------------------------------
if (gs_busyCount++ > 0)
return;
- wxASSERT_MSG( !gs_savedCursor.Ok(),
+ wxASSERT_MSG( !gs_savedCursor.IsOk(),
wxT("forgot to call wxEndBusyCursor, will leak memory") );
gs_savedCursor = g_globalCursor;