]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use const reference instead of rvalue
authorDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Mon, 26 Nov 2018 16:03:14 +0000 (17:03 +0100)
committerDaniel Garcia-Sanchez <daniel.garcia-sanchez@insp.upmc.fr>
Wed, 9 Jan 2019 18:29:22 +0000 (19:29 +0100)
source/base/hdf5.cc

index a7f2c2763c1e67e37f611c9ad755543b98034289..d447ac3d3debef644c8a1a0c67b2d323eaa771ad 100644 (file)
@@ -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;
       }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.