fix(ci): enable clang-tidy bugprone-unhandled-self-assignment / cert-oop54-cpp (#26767)

Signed-off-by: kuralme <kuralme@protonmail.com>
This commit is contained in:
Ege Kural
2026-03-16 17:59:06 -04:00
committed by GitHub
parent ed58a83a5c
commit 113853f631
5 changed files with 16 additions and 3 deletions

View File

@@ -92,6 +92,11 @@ public:
// copy assignment
Subscription &operator=(const Subscription &other)
{
// Check for self-assignment
if (this == &other) {
return *this;
}
unsubscribe();
_orb_id = other._orb_id;
_instance = other._instance;