mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:03:02 +01:00
Fixed const correctness in pointer holding classes
(cherry picked from commit bc93b7b61e
)
This commit is contained in:
parent
c3e16d6867
commit
c2378962e8
@ -176,22 +176,12 @@ namespace Firebird
|
||||
return ptr;
|
||||
}
|
||||
|
||||
operator T*()
|
||||
operator T*() const
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
T* operator->()
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
operator const T*() const
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
const T* operator->() const
|
||||
T* operator->() const
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
@ -136,22 +136,12 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
operator Where*()
|
||||
Where* get() const
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
Where* get()
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
operator const Where*() const
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
const Where* get() const
|
||||
operator Where*() const
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
@ -166,12 +156,7 @@ public:
|
||||
return ptr != NULL;
|
||||
}
|
||||
|
||||
Where* operator->()
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
const Where* operator->() const
|
||||
Where* operator->() const
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user