Skip to content

Commit

Permalink
H5Group: Fix operator= (HDFGroup#4473)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller authored and byrnHDF committed May 14, 2024
1 parent 6f3a713 commit 3e819c2
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 3e819c2

Please sign in to comment.