diff --git a/ChangeLog b/ChangeLog index 2ecc55df0..49fb33be9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,11 @@ * CMakeLists.txt: made 0.4.3 release + * include/atomic_int.h: + - fixed typo + - added copy constructor implementation for AtomicInt class - fixes + build failure with Qt < 4.4.0 + * CMakeLists.txt: fixed typos diff --git a/include/atomic_int.h b/include/atomic_int.h index f6a835b19..dd8bf7827 100755 --- a/include/atomic_int.h +++ b/include/atomic_int.h @@ -27,7 +27,7 @@ #include -#if QT_VERSION > 0x040400 +#if QT_VERSION >= 0x040400 typedef QAtomicInt AtomicInt; @@ -42,6 +42,12 @@ public: { } + inline AtomicInt( const AtomicInt & _copy ) : + m_value( _copy.m_value ), + m_lock() + { + } + inline int fetchAndStoreOrdered( int _newVal ) { m_lock.lock();