From 5f4c3a939cdb8206803767faa5b19dc9aa3687f1 Mon Sep 17 00:00:00 2001 From: Andrej Babic Date: Thu, 8 Feb 2018 10:54:30 +0100 Subject: [PATCH] Return dataset type as constant reference --- src/H5Format.cpp | 2 +- src/H5Format.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/H5Format.cpp b/src/H5Format.cpp index 8dac3e0..9bc9523 100644 --- a/src/H5Format.cpp +++ b/src/H5Format.cpp @@ -79,7 +79,7 @@ const boost::any& H5FormatUtils::get_value_from_reference(const string& dataset_ } } -H5::PredType H5FormatUtils::get_dataset_data_type(const string& type) +const H5::PredType& H5FormatUtils::get_dataset_data_type(const string& type) { #ifdef DEBUG_OUTPUT cout << "[H5FormatUtils::get_dataset_data_type] Getting dataset type for received frame type " << type << endl; diff --git a/src/H5Format.hpp b/src/H5Format.hpp index bf6f1d5..f7024a4 100644 --- a/src/H5Format.hpp +++ b/src/H5Format.hpp @@ -100,7 +100,7 @@ namespace H5FormatUtils void compact_dataset(H5::DataSet& dataset, hsize_t max_frame_index); H5::Group create_group(H5::Group& target, const std::string& name); - H5::PredType get_dataset_data_type(const std::string& type); + const H5::PredType& get_dataset_data_type(const std::string& type); H5::DataSet write_dataset(H5::Group& target, const h5_dataset& dataset, const std::map& values); H5::DataSet write_dataset(H5::Group& target, const std::string& name, double value);