mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
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:
parent
69d947309a
commit
596ab564c8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user