From 85baf0f8710965cfd75eb48312b02762361dcf89 Mon Sep 17 00:00:00 2001 From: Daniel Garcia-Sanchez Date: Thu, 15 Nov 2018 16:40:55 +0100 Subject: [PATCH] Make const the functions open_* and create_* --- include/deal.II/base/hdf5.h | 6 +++--- source/base/hdf5.cc | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/hdf5.h b/include/deal.II/base/hdf5.h index 89d7897905..5215324273 100644 --- a/include/deal.II/base/hdf5.h +++ b/include/deal.II/base/hdf5.h @@ -967,19 +967,19 @@ namespace HDF5 * Opens a sub-group of the current Group or File. */ Group - open_group(const std::string &name); + open_group(const std::string &name) const; /** * Creates a sub-group in the current Group or File. */ Group - create_group(const std::string &name); + create_group(const std::string &name) const; /** * Opens a dataset. */ DataSet - open_dataset(const std::string &name); + open_dataset(const std::string &name) const; /** * Creates a dataset. @p number can be `float`, `double`, diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index 5d6dd6cd41..0191383254 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -1413,7 +1413,7 @@ namespace HDF5 Group - Group::open_group(const std::string &name) + Group::open_group(const std::string &name) const { return Group(name, *this, mpi, GroupAccessMode::open); } @@ -1421,7 +1421,7 @@ namespace HDF5 Group - Group::create_group(const std::string &name) + Group::create_group(const std::string &name) const { return Group(name, *this, mpi, GroupAccessMode::create); } @@ -1429,7 +1429,7 @@ namespace HDF5 DataSet - Group::open_dataset(const std::string &name) + Group::open_dataset(const std::string &name) const { return DataSet(name, *hdf5_reference, mpi); } -- 2.39.5