wxCursorRefData::wxCursorRefData()
{
- m_cursor = (MGLCursor*) NULL;
+ m_cursor = NULL;
}
wxCursorRefData::~wxCursorRefData()
if ( gs_cursorsHash->find(cursorId) != gs_cursorsHash->end() )
{
- wxLogTrace(_T("mglcursor"), _T("cursor id %i fetched from cache"), cursorId);
+ wxLogTrace(wxT("mglcursor"), wxT("cursor id %i fetched from cache"), cursorId);
*this = (*gs_cursorsHash)[cursorId];
return;
}
else
{
(*gs_cursorsHash)[cursorId] = *this;
- wxLogTrace(_T("mglcursor"), _T("cursor id %i added to cache (%s)"),
+ wxLogTrace(wxT("mglcursor"), wxT("cursor id %i added to cache (%s)"),
cursorId, cursorname);
}
}
void wxSetCursor(const wxCursor& cursor)
{
- if ( cursor.Ok() )
+ if ( cursor.IsOk() )
{
if ( g_winMng )
MGL_wmSetGlobalCursor(g_winMng, *cursor.GetMGLCursor());
{
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 = gs_globalCursor;
- if ( cursor->Ok() )
+ if ( cursor->IsOk() )
wxSetCursor(*cursor);
else
wxSetCursor(wxCursor(wxCURSOR_WAIT));