X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2b5f62a0b2db198609b45dec622a018dae37008e..00dd3b1897bd74276234f449f68e3f0805eb77dc:/src/msw/region.cpp

diff --git a/src/msw/region.cpp b/src/msw/region.cpp
index 4da2054b10..38d3267d44 100644
--- a/src/msw/region.cpp
+++ b/src/msw/region.cpp
@@ -70,6 +70,14 @@ public:
     }
 
     HRGN m_region;
+
+private:
+// Cannot use
+//  DECLARE_NO_COPY_CLASS(wxRegionRefData)
+// 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:
+    wxRegionRefData& operator=(const wxRegionRefData&);
 };
 
 #define M_REGION (((wxRegionRefData*)m_refData)->m_region)