Fix "nonnull asserts" warnings on gcc 13.

The C++ standard guarantees that the this pointer is never nullptr
in valid programs.
This commit is contained in:
Kristian Bendiksen
2024-09-27 14:42:53 +02:00
parent 69d947309a
commit 596ab564c8
-2
View File
@@ -70,7 +70,6 @@ inline Object::~Object()
//--------------------------------------------------------------------------------------------------
inline int Object::addRef() const
{
CVF_TIGHT_ASSERT(this);
return ++m_refCount;
}
@@ -103,7 +102,6 @@ inline int Object::release() const
//--------------------------------------------------------------------------------------------------
inline int Object::refCount() const
{
CVF_TIGHT_ASSERT(this);
return m_refCount;
}