From da82a440807109084dd1b2a1f01602ae8857dfbf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 4 Sep 2014 19:44:57 +0000 Subject: [PATCH] Deprecate wxBitmap assignment operator from wxCursor in wxMSW. This assignment operator is not portable and a better alternative is available now with the addition of the wxBitmap ctor from wxCursor in the previous commit. See #15699. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/bitmap.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/msw/bitmap.h b/include/wx/msw/bitmap.h index c7a1f1d1ed..e6b7688b05 100644 --- a/include/wx/msw/bitmap.h +++ b/include/wx/msw/bitmap.h @@ -110,12 +110,17 @@ public: return *this; } +#ifdef WXWIN_COMPATIBILITY_3_0 + // This assignment operator is not portable as it is not implemented in any + // other ports. + wxDEPRECATED_MSG("Don't assign wxCursor to an existing wxBitmap, create a new wxBitmap from wxCursor instead.") wxBitmap& operator=(const wxCursor& cursor) { (void)CopyFromCursor(cursor); return *this; } +#endif // WXWIN_COMPATIBILITY_3_0 virtual ~wxBitmap();