X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c57bf07fa9a8a8c3dbcdbd1aaceff3c4dff9d69..38a097f588121ffcab2fa57e4494a6d0783c3567:/include/wx/msw/pen.h diff --git a/include/wx/msw/pen.h b/include/wx/msw/pen.h index e53c21f3bd..7e682576d4 100644 --- a/include/wx/msw/pen.h +++ b/include/wx/msw/pen.h @@ -1,21 +1,17 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/pen.h +// Name: wx/msw/pen.h // Purpose: wxPen class // Author: Julian Smart // Modified by: Vadim Zeitlin: fixed operator=(), ==(), !=() // Created: 01/02/97 // RCS-ID: $Id$ // Copyright: (c) Julian Smart -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_PEN_H_ #define _WX_PEN_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "pen.h" -#endif - #include "wx/gdiobj.h" #include "wx/bitmap.h" #include "wx/colour.h" @@ -81,17 +77,8 @@ public: wxPen(); wxPen(const wxColour& col, int width = 1, int style = wxSOLID); wxPen(const wxBitmap& stipple, int width); - wxPen(const wxPen& pen) { Ref(pen); } virtual ~wxPen(); - wxPen& operator=(const wxPen& pen) - { - if ( this != &pen ) - Ref(pen); - - return *this; - } - bool operator==(const wxPen& pen) const { const wxPenRefData *penData = (wxPenRefData *)pen.m_refData; @@ -132,7 +119,7 @@ public: // Internal bool RealizeResource(); - bool FreeResource(bool force = FALSE); + bool FreeResource(bool force = false); WXHANDLE GetResourceHandle() const; bool IsFree() const; void Unshare(); @@ -142,4 +129,3 @@ private: }; #endif // _WX_PEN_H_ -