From 723f41aa2dd617dad4529463225c400cd2075bce Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 29 Jan 2019 10:59:11 +0100 Subject: [PATCH] performance-unnecessary-value-param --- source/base/hdf5.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/base/hdf5.cc b/source/base/hdf5.cc index d8fe0dca80..b8c9586790 100644 --- a/source/base/hdf5.cc +++ b/source/base/hdf5.cc @@ -518,16 +518,12 @@ namespace HDF5 template <> void HDF5Object::set_attribute(const std::string &attr_name, - const std::string value) + const std::string value) // NOLINT { // Writes a UTF8 variable string // // code inspired from // https://support.hdfgroup.org/ftp/HDF5/examples/misc-examples/vlstratt.c - // - // In the case of a variable length string, H5Awrite needs the address of a - // (char *). For this reason the std::string value has been copied to a C - // string. hid_t attr; hid_t aid; -- 2.39.5