chore: Enable clang-tidy bugprone-unhandled-self-assignment check (#6504)

This commit is contained in:
Alex Kremer
2026-03-10 17:42:49 +00:00
committed by GitHub
parent a896ed3987
commit c38aabdaee
3 changed files with 7 additions and 1 deletions

View File

@@ -23,6 +23,9 @@ STBase::STBase(SField const& n) : fName(&n)
STBase&
STBase::operator=(STBase const& t)
{
if (this == &t)
return *this;
if (!fName->isUseful())
fName = t.fName;
return *this;