H5Group: Fix operator= (#4473)

Closes #4472
This commit is contained in:
Julien Schueller 2024-05-10 23:30:19 +02:00 committed by GitHub
parent ac7b5ce314
commit ea76013648
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -610,9 +610,7 @@ Attribute::~Attribute()
Attribute &
Attribute::operator=(const Attribute &original)
{
if (&original != this) {
setId(original.id);
}
IdComponent::operator=(original);
return *this;
}

View File

@ -279,9 +279,7 @@ Group::~Group()
Group &
Group::operator=(const Group &original)
{
if (&original != this) {
setId(original.id);
}
IdComponent::operator=(original);
return *this;
}