X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4799f3baab3805e51cc1754b89d855d32e94c232..8dba4c72300eafb6b35eaf754c379a72416bfbdd:/src/cocoa/pen.mm?ds=sidebyside diff --git a/src/cocoa/pen.mm b/src/cocoa/pen.mm index 0968133ffc..5920dc035a 100644 --- a/src/cocoa/pen.mm +++ b/src/cocoa/pen.mm @@ -24,7 +24,6 @@ // ======================================================================== class WXDLLEXPORT wxPenRefData: public wxGDIRefData { - friend class WXDLLEXPORT wxPen; public: wxPenRefData(const wxColour& colour = wxNullColour, int width = 1, int style = wxSOLID, @@ -79,6 +78,9 @@ protected: static const CGFloat scm_patternShortDash[]; static const int scm_countDotDash; static const CGFloat scm_patternDotDash[]; + + friend class WXDLLIMPEXP_FWD_CORE wxPen; + private: // Don't allow assignment wxPenRefData& operator=(const wxPenRefData& data); @@ -264,12 +266,12 @@ wxPen::wxPen(const wxBitmap& stipple, int width) m_refData = new wxPenRefData(wxNullColour,width,wxSTIPPLE,stipple); } -wxObjectRefData *wxPen::CreateRefData() const +wxGDIRefData *wxPen::CreateGDIRefData() const { return new wxPenRefData; } -wxObjectRefData *wxPen::CloneRefData(const wxObjectRefData *data) const +wxGDIRefData *wxPen::CloneGDIRefData(const wxGDIRefData *data) const { return new wxPenRefData(*(wxPenRefData *)data); }