X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de6185e212ebc37ff11ff70278e3c4f68419b097..79b7b95aed76eb742deef93d046886c20452fb36:/src/motif/cursor.cpp diff --git a/src/motif/cursor.cpp b/src/motif/cursor.cpp index fdcb917d39..6d32080afd 100644 --- a/src/motif/cursor.cpp +++ b/src/motif/cursor.cpp @@ -21,11 +21,7 @@ #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/utils.h" -#endif - -#include "wx/window.h" - -#if wxUSE_IMAGE + #include "wx/window.h" #include "wx/image.h" #endif @@ -55,10 +51,10 @@ WX_DEFINE_LIST(wxXCursorList) class WXDLLEXPORT wxCursorRefData: public wxObjectRefData { - friend class WXDLLEXPORT wxCursor; + friend class wxCursor; public: wxCursorRefData(); - ~wxCursorRefData(); + virtual ~wxCursorRefData(); wxXCursorList m_cursors; // wxXCursor objects, one per display wxStockCursor m_cursorId; // wxWidgets standard cursor id @@ -263,7 +259,7 @@ wxCursor::wxCursor(const wxString& name, long flags, int hotSpotX, int hotSpotY) int screen_num = DefaultScreen (dpy); int value = XReadBitmapFile (dpy, RootWindow (dpy, screen_num), - wxConstCast(name.c_str(), char), + name.mb_str(), &w, &h, &pixmap, &hotX, &hotY); if (value == BitmapSuccess) @@ -297,7 +293,7 @@ wxCursor::~wxCursor() { } -bool wxCursor::Ok() const +bool wxCursor::IsOk() const { return m_refData != NULL; }