Fix clang-tidy bugprone-unhandled-self-assignment warnings in headers

This commit is contained in:
Tim Wojtulewicz 2025-06-09 14:16:14 -07:00
parent 9a3401deee
commit a58110986d
2 changed files with 5 additions and 0 deletions

View file

@ -85,6 +85,9 @@ inline UID::UID(const UID& other) {
}
inline UID& UID::operator=(const UID& other) {
if ( this == &other )
return *this;
memmove(uid, other.uid, sizeof(uid));
initialized = other.initialized;
return *this;