8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

Fixed const correctness in pointer holding classes

(cherry picked from commit bc93b7b61e)
This commit is contained in:
AlexPeshkoff 2023-03-22 16:27:06 +03:00
parent c3e16d6867
commit c2378962e8
2 changed files with 5 additions and 30 deletions

View File

@ -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;
}

View File

@ -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;
}