From 9706d08c75a0aba4a0b4fd3a99a831dbec9adfb5 Mon Sep 17 00:00:00 2001 From: David Wells Date: Mon, 13 May 2019 13:27:04 -0400 Subject: [PATCH] cppcheck: Pass a vector by reference. --- source/base/hdf5.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5