Skip to content

Commit

Permalink
removed header file from attribute_iterator.cpp
Browse files Browse the repository at this point in the history
Update #548
  • Loading branch information
eugenwintersberger committed Aug 9, 2022
1 parent bcf0e51 commit 673b6e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/h5cpp/attribute/attribute_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
//

#include <h5cpp/attribute/attribute_iterator.hpp>
#include <h5cpp/attribute/attribute.hpp>
#include <h5cpp/core/utilities.hpp>
#include <h5cpp/node/node.hpp>

Expand All @@ -43,8 +42,7 @@ AttributeIterator::AttributeIterator(const AttributeManager &view,ssize_t index)

Attribute AttributeIterator::operator*() const
{
if(!(*this))
throw std::runtime_error("Invalid iterator!");
if(!(*this)) { throw std::runtime_error("Invalid iterator!"); }

return current_attribute_;
}
Expand Down

0 comments on commit 673b6e7

Please sign in to comment.