X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..fed66a8797b486b0a242fc878248511b1f594897:/include/wx/msw/pen.h?ds=sidebyside diff --git a/include/wx/msw/pen.h b/include/wx/msw/pen.h index a653d39db0..2a96b98338 100644 --- a/include/wx/msw/pen.h +++ b/include/wx/msw/pen.h @@ -18,6 +18,7 @@ #include "wx/gdiobj.h" #include "wx/bitmap.h" +#include "wx/colour.h" typedef WXDWORD wxMSWDash; @@ -41,6 +42,14 @@ protected: wxDash * m_dash ; wxColour m_colour; WXHPEN m_hPen; + +private: +// Cannot use +// DECLARE_NO_COPY_CLASS(wxPenRefData) +// because copy constructor is explicitly declared above; +// but no copy assignment operator is defined, so declare +// it private to prevent the compiler from defining it: + wxPenRefData& operator=(const wxPenRefData&); }; #define M_PENDATA ((wxPenRefData *)m_refData)