]> https://gitweb.dealii.org/ - dealii.git/commitdiff
cppcheck: Pass a vector by reference.
authorDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 17:27:04 +0000 (13:27 -0400)
committerDavid Wells <drwells@email.unc.edu>
Mon, 13 May 2019 19:56:35 +0000 (15:56 -0400)
source/base/hdf5.cc

index bd13d4adeb768b8724b3fcdea00df5430eb2308e..ea7d5058a9b4200a57530574481b205eabfb3d92 100644 (file)
@@ -231,7 +231,7 @@ namespace HDF5
       std::is_same<Container,
                    FullMatrix<typename Container::value_type>>::value,
       Container>::type
-    initialize_container(const std::vector<hsize_t> dimensions)
+    initialize_container(const std::vector<hsize_t> &dimensions)
     {
       // If the rank is higher than 2, then remove single-dimensional entries
       // from the shape defined by dimensions. This is equivalent to the squeeze

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.