forked from boostorg/smart_ptr
Remove extra argument to atomic_dcrement.
[SVN r27994]
This commit is contained in:
@@ -121,7 +121,7 @@ public:
|
|||||||
|
|
||||||
void release() // nothrow
|
void release() // nothrow
|
||||||
{
|
{
|
||||||
if( atomic_decrement( &use_count_, -1 ) == 0 )
|
if( atomic_decrement( &use_count_ ) == 0 )
|
||||||
{
|
{
|
||||||
dispose();
|
dispose();
|
||||||
weak_release();
|
weak_release();
|
||||||
@@ -135,7 +135,7 @@ public:
|
|||||||
|
|
||||||
void weak_release() // nothrow
|
void weak_release() // nothrow
|
||||||
{
|
{
|
||||||
if( atomic_decrement( &weak_count_, -1 ) == 0 )
|
if( atomic_decrement( &weak_count_ ) == 0 )
|
||||||
{
|
{
|
||||||
destroy();
|
destroy();
|
||||||
}
|
}
|
||||||
|
@@ -148,7 +148,7 @@ public:
|
|||||||
|
|
||||||
void release() // nothrow
|
void release() // nothrow
|
||||||
{
|
{
|
||||||
if( atomic_decrement( &use_count_, -1 ) == 0 )
|
if( atomic_decrement( &use_count_ ) == 0 )
|
||||||
{
|
{
|
||||||
dispose();
|
dispose();
|
||||||
weak_release();
|
weak_release();
|
||||||
@@ -162,7 +162,7 @@ public:
|
|||||||
|
|
||||||
void weak_release() // nothrow
|
void weak_release() // nothrow
|
||||||
{
|
{
|
||||||
if( atomic_decrement( &weak_count_, -1 ) == 0 )
|
if( atomic_decrement( &weak_count_ ) == 0 )
|
||||||
{
|
{
|
||||||
destroy();
|
destroy();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user