From: Daniel Garcia-Sanchez Date: Mon, 26 Nov 2018 16:03:14 +0000 (+0100) Subject: Use const reference instead of rvalue X-Git-Tag: v9.1.0-rc1~453^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d601e7b2d3f38d20e7be9fce73b43a7a2cc6416b;p=dealii.git Use const reference instead of rvalue --- diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index a7f2c2763c..d447ac3d3d 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -564,7 +564,7 @@ namespace HDF5 free(dims); size = 1; - for (auto &&dimension : dimensions) + for (const auto &dimension : dimensions) { size *= dimension; } @@ -609,7 +609,7 @@ namespace HDF5 Assert(*hdf5_reference >= 0, ExcMessage("Error at H5Dcreate2")); size = 1; - for (auto &&dimension : dimensions) + for (const auto &dimension : dimensions) { size *= dimension; }