Skip to content

Commit

Permalink
Fix "nonnull asserts" warnings on gcc 13.
Browse files Browse the repository at this point in the history
The C++ standard guarantees that the this pointer is never nullptr
in valid programs.
  • Loading branch information
kriben committed Sep 27, 2024
1 parent 69d9473 commit 596ab56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Fwk/VizFwk/LibCore/cvfObject.inl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ inline Object::~Object()
//--------------------------------------------------------------------------------------------------
inline int Object::addRef() const
{
CVF_TIGHT_ASSERT(this);
return ++m_refCount;
}

Expand Down Expand Up @@ -103,7 +102,6 @@ inline int Object::release() const
//--------------------------------------------------------------------------------------------------
inline int Object::refCount() const
{
CVF_TIGHT_ASSERT(this);
return m_refCount;
}

Expand Down

0 comments on commit 596ab56

Please sign in to comment.