X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/edd971741e8778de6b709f0a4aa59e5b5f93e54e..b448f30e9c884794601cecd87bb136d1edf5bb0f:/include/wx/msw/pen.h?ds=sidebyside diff --git a/include/wx/msw/pen.h b/include/wx/msw/pen.h index 3c56bdaa70..61ce98dfe9 100644 --- a/include/wx/msw/pen.h +++ b/include/wx/msw/pen.h @@ -41,6 +41,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) @@ -89,7 +97,7 @@ public: // Internal bool RealizeResource(); bool FreeResource(bool force = FALSE); - WXHANDLE GetResourceHandle() ; + WXHANDLE GetResourceHandle() const; bool IsFree() const; void Unshare(); };