From bc1d617aac6575b9764b3f8195504ee79c978f49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Mon, 10 Sep 2007 22:15:16 +0000 Subject: [PATCH] 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 --- include/wx/atomic.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } -- 2.45.2