]> https://gitweb.dealii.org/ - dealii.git/commitdiff
performance-unnecessary-value-param 7653/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 29 Jan 2019 09:59:11 +0000 (10:59 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 29 Jan 2019 10:01:49 +0000 (11:01 +0100)
source/base/hdf5.cc

index d8fe0dca80c122cd02d5ec343c86563fce3edd87..b8c95867901290de0f8d2373ae7ba88ec03387fd 100644 (file)
@@ -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;

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.