From a8ad0d2eb920f67ec4005ccb29be0bbcb7f82da5 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 15 Nov 2023 14:56:54 +0100 Subject: [PATCH] Simplify internal method `_open`. --- include/highfive/bits/H5Node_traits.hpp | 3 +-- include/highfive/bits/H5Node_traits_misc.hpp | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/highfive/bits/H5Node_traits.hpp b/include/highfive/bits/H5Node_traits.hpp index d53d3f048..493749bee 100644 --- a/include/highfive/bits/H5Node_traits.hpp +++ b/include/highfive/bits/H5Node_traits.hpp @@ -239,8 +239,7 @@ class NodeTraits { bool _exist(const std::string& node_name, bool raise_errors = true) const; // Opens an arbitrary object to obtain info - Object _open(const std::string& node_name, - const DataSetAccessProps& accessProps = DataSetAccessProps::Default()) const; + Object _open(const std::string& node_name) const; }; diff --git a/include/highfive/bits/H5Node_traits_misc.hpp b/include/highfive/bits/H5Node_traits_misc.hpp index 2f75ff311..0d80b14b4 100644 --- a/include/highfive/bits/H5Node_traits_misc.hpp +++ b/include/highfive/bits/H5Node_traits_misc.hpp @@ -396,11 +396,10 @@ inline void NodeTraits::createHardLink(const std::string& link_name, template -inline Object NodeTraits::_open(const std::string& node_name, - const DataSetAccessProps& accessProps) const { +inline Object NodeTraits::_open(const std::string& node_name) const { const auto id = H5Oopen(static_cast(this)->getId(), node_name.c_str(), - accessProps.getId()); + H5P_DEFAULT); if (id < 0) { HDF5ErrMapper::ToException(std::string("Unable to open \"") + node_name + "\":");