Skip to content

Commit

Permalink
H5Group: Fix operator=
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed May 10, 2024
1 parent 18321de commit eb3b306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions c++/src/H5Attribute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,7 @@ Attribute::~Attribute()
Attribute &
Attribute::operator=(const Attribute &original)
{
if (&original != this) {
setId(original.id);
}
IdComponent::operator=(original);

return *this;
}
Expand Down
4 changes: 1 addition & 3 deletions c++/src/H5Group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,7 @@ Group::~Group()
Group &
Group::operator=(const Group &original)
{
if (&original != this) {
setId(original.id);
}
IdComponent::operator=(original);

return *this;
}
Expand Down

0 comments on commit eb3b306

Please sign in to comment.