diff options
author | Vincent Richard <[email protected]> | 2008-10-12 10:05:28 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2008-10-12 10:05:28 +0000 |
commit | 3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d (patch) | |
tree | 1968196db0d6ae27fd70d0732ff3defed0efb61f /src/utility/smartPtrInt.cpp | |
parent | Encode '?' characters to avoid breaking QP encoding (Zarafa). (diff) | |
download | vmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.tar.gz vmime-3f4226eaac5d0d30be1f4ca5d5cf010c98a7ce7d.zip |
Fixed compilation warnings.
Diffstat (limited to 'src/utility/smartPtrInt.cpp')
-rw-r--r-- | src/utility/smartPtrInt.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/utility/smartPtrInt.cpp b/src/utility/smartPtrInt.cpp index 9bebe977..4b4ce130 100644 --- a/src/utility/smartPtrInt.cpp +++ b/src/utility/smartPtrInt.cpp @@ -57,7 +57,7 @@ refManagerImpl::~refManagerImpl() } -const bool refManagerImpl::addStrong() +bool refManagerImpl::addStrong() { if (m_strongCount <= 0) return false; @@ -118,13 +118,13 @@ void refManagerImpl::deleteObject() } -const long refManagerImpl::getStrongRefCount() const +long refManagerImpl::getStrongRefCount() const { return m_strongCount; } -const long refManagerImpl::getWeakRefCount() const +long refManagerImpl::getWeakRefCount() const { return m_weakCount; } @@ -149,13 +149,13 @@ refCounter::~refCounter() } -const long refCounter::increment() +long refCounter::increment() { return InterlockedIncrement(&m_value); } -const long refCounter::decrement() +long refCounter::decrement() { return InterlockedDecrement(&m_value); } @@ -181,7 +181,7 @@ refCounter::~refCounter() } -const long refCounter::increment() +long refCounter::increment() { #if __GNUC_MINOR__ < 4 && __GNUC__ < 4 return __exchange_and_add(&m_value, 1) + 1; @@ -191,7 +191,7 @@ const long refCounter::increment() } -const long refCounter::decrement() +long refCounter::decrement() { #if __GNUC_MINOR__ < 4 && __GNUC__ < 4 return __exchange_and_add(&m_value, -1) - 1; @@ -231,7 +231,7 @@ refCounter::~refCounter() } -const long refCounter::increment() +long refCounter::increment() { long value; @@ -243,7 +243,7 @@ const long refCounter::increment() } -const long refCounter::decrement() +long refCounter::decrement() { long value; @@ -275,13 +275,13 @@ refCounter::~refCounter() } -const long refCounter::increment() +long refCounter::increment() { return ++m_value; } -const long refCounter::decrement() +long refCounter::decrement() { return --m_value; } |