From: Daniel Garcia-Sanchez Date: Thu, 15 Nov 2018 15:40:55 +0000 (+0100) Subject: Make const the functions open_* and create_* X-Git-Tag: v9.1.0-rc1~453^2~10 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85baf0f8710965cfd75eb48312b02762361dcf89;p=dealii.git Make const the functions open_* and create_* --- 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); }