* Made _GetUnchecked() return nothing, as it was ignored anyway.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
33ce19159d
commit
8eb51285d3
@ -28,7 +28,7 @@ private:
|
||||
~WeakPointer();
|
||||
|
||||
private:
|
||||
bool _GetUnchecked();
|
||||
void _GetUnchecked();
|
||||
|
||||
private:
|
||||
vint32 fUseCount;
|
||||
@ -264,10 +264,10 @@ WeakPointer<Type>::~WeakPointer()
|
||||
|
||||
|
||||
template<typename Type>
|
||||
inline bool
|
||||
inline void
|
||||
WeakPointer<Type>::_GetUnchecked()
|
||||
{
|
||||
return atomic_add(&fUseCount, 1) == 1;
|
||||
atomic_add(&fUseCount, 1);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user