X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a1498c08b07625baa087622e75637a2f15325b6..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/mgl/pen.cpp diff --git a/src/mgl/pen.cpp b/src/mgl/pen.cpp index 5e125c2d03..4c63041cbf 100644 --- a/src/mgl/pen.cpp +++ b/src/mgl/pen.cpp @@ -15,8 +15,12 @@ #endif #include "wx/pen.h" -#include "wx/bitmap.h" -#include "wx/colour.h" + +#ifndef WX_PRECOMP + #include "wx/bitmap.h" + #include "wx/colour.h" +#endif + #include "wx/mgl/private.h" //----------------------------------------------------------------------------- @@ -103,18 +107,6 @@ wxPen::wxPen(const wxBitmap& stipple, int width) wxBitmapToPixPattern(stipple, &(M_PENDATA->m_pixPattern), NULL); } -wxPen::wxPen(const wxPen& pen) -{ - Ref(pen); -} - -wxPen& wxPen::operator = (const wxPen& pen) -{ - if (*this == pen) return (*this); - Ref(pen); - return *this; -} - bool wxPen::operator == (const wxPen& pen) const { return m_refData == pen.m_refData; @@ -245,7 +237,7 @@ void* wxPen::GetPixPattern() const } -bool wxPen::Ok() const +bool wxPen::IsOk() const { return (m_refData != NULL); }