From: Václav Slavík Date: Mon, 10 Sep 2007 22:15:16 +0000 (+0000) Subject: fix to make 'wxAtomicInt i = 0;' work with generic implementation and gcc X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc1d617aac6575b9764b3f8195504ee79c978f49?ds=inline fix to make 'wxAtomicInt i = 0;' work with generic implementation and gcc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/atomic.h b/include/wx/atomic.h index c2cdc62345..83b285cf7f 100644 --- a/include/wx/atomic.h +++ b/include/wx/atomic.h @@ -113,6 +113,7 @@ class wxAtomicInt32 public: wxAtomicInt32() { } // non initialized for consistency with basic int type wxAtomicInt32(wxInt32 v) : m_value(v) { } + wxAtomicInt32(const wxAtomicInt32& a) : m_value(a.m_value) {} operator wxInt32() const { return m_value; } operator volatile wxInt32&() { return m_value; } @@ -134,8 +135,6 @@ public: private: volatile wxInt32 m_value; wxCriticalSection m_locker; - - DECLARE_NO_COPY_CLASS(wxAtomicInt32) }; inline void wxAtomicInc(wxAtomicInt32 &value) { value.Inc(); }