X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d167489bdf17d55d9bd11be834bc17277661063..c8e1af672f46e93ae2fe6d7f9d5b35a3d8d49c16:/include/wx/msw/gdiobj.h diff --git a/include/wx/msw/gdiobj.h b/include/wx/msw/gdiobj.h index e7285541d1..3d3d1b9209 100644 --- a/include/wx/msw/gdiobj.h +++ b/include/wx/msw/gdiobj.h @@ -12,7 +12,7 @@ #ifndef _WX_GDIOBJ_H_ #define _WX_GDIOBJ_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "gdiobj.h" #endif @@ -36,26 +36,26 @@ class WXDLLEXPORT wxGDIRefData : public wxObjectRefData class WXDLLEXPORT wxGDIObject : public wxObject { public: - wxGDIObject() { m_visible = FALSE; }; + wxGDIObject() { m_visible = false; }; // Creates the resource - virtual bool RealizeResource() { return FALSE; }; + virtual bool RealizeResource() { return false; }; // Frees the resource - virtual bool FreeResource(bool WXUNUSED(force) = FALSE) { return FALSE; } + virtual bool FreeResource(bool WXUNUSED(force) = false) { return false; } - virtual bool IsFree() const { return FALSE; } + virtual bool IsFree() const { return false; } bool IsNull() const { return (m_refData == 0); } // Returns handle. - virtual WXHANDLE GetResourceHandle() { return 0; } + virtual WXHANDLE GetResourceHandle() const { return 0; } virtual bool GetVisible() { return m_visible; } virtual void SetVisible(bool v) { m_visible = v; } protected: - bool m_visible; // TRUE only if we should delete this object ourselves + bool m_visible; // true only if we should delete this object ourselves private: DECLARE_DYNAMIC_CLASS(wxGDIObject)