mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 03:23:03 +01:00
Misc.
This commit is contained in:
parent
50cb061594
commit
b3de41ea87
@ -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;
|
||||
}
|
||||
|
@ -77,7 +77,7 @@ public:
|
||||
}
|
||||
|
||||
bool operator !() const {
|
||||
return ptr ? false : true;
|
||||
return !ptr;
|
||||
}
|
||||
|
||||
Where* operator->() {
|
||||
|
@ -317,7 +317,6 @@ private:
|
||||
lock->enter();
|
||||
}
|
||||
|
||||
private:
|
||||
Mutex* lock;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user