From: David Wells Date: Mon, 13 May 2019 17:27:04 +0000 (-0400) Subject: cppcheck: Pass a vector by reference. X-Git-Tag: v9.1.0-rc1~18^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9706d08c75a0aba4a0b4fd3a99a831dbec9adfb5;p=dealii.git cppcheck: Pass a vector by reference. --- diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index bd13d4adeb..ea7d5058a9 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -231,7 +231,7 @@ namespace HDF5 std::is_same>::value, Container>::type - initialize_container(const std::vector dimensions) + initialize_container(const std::vector &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