8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 03:23:03 +01:00
This commit is contained in:
robocop 2008-03-28 13:25:47 +00:00
parent 50cb061594
commit b3de41ea87
3 changed files with 5 additions and 6 deletions

View File

@ -63,7 +63,7 @@ namespace Firebird
class Reference
{
public:
Reference(RefCounted& refCounted) :
explicit Reference(RefCounted& refCounted) :
r(&refCounted)
{
r->addRef();
@ -92,7 +92,7 @@ namespace Firebird
RefPtr() : ptr(0)
{ }
RefPtr(T* p) : ptr(p)
explicit RefPtr(T* p) : ptr(p)
{
if (ptr)
{
@ -125,12 +125,12 @@ namespace Firebird
return ptr;
}
operator T*() const
operator T*()
{
return ptr;
}
T* operator->() const
T* operator->()
{
return ptr;
}

View File

@ -77,7 +77,7 @@ public:
}
bool operator !() const {
return ptr ? false : true;
return !ptr;
}
Where* operator->() {

View File

@ -317,7 +317,6 @@ private:
lock->enter();
}
private:
Mutex* lock;
};