From b7a8792195d21539f2b4b4cae35ff84a9e33349b Mon Sep 17 00:00:00 2001 From: Oliver Ruebel Date: Thu, 19 Sep 2024 17:30:58 -0700 Subject: [PATCH] Make simple getter for HDF5RecordingData inline --- src/hdf5/HDF5IO.cpp | 5 ----- src/hdf5/HDF5IO.hpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/hdf5/HDF5IO.cpp b/src/hdf5/HDF5IO.cpp index 2efdf689..4f087a4a 100644 --- a/src/hdf5/HDF5IO.cpp +++ b/src/hdf5/HDF5IO.cpp @@ -727,8 +727,3 @@ Status HDF5RecordingData::writeDataBlock( } return Status::Success; } - -const H5::DataSet* HDF5RecordingData::getDataSet() -{ - return this->m_dataset.get(); -}; diff --git a/src/hdf5/HDF5IO.hpp b/src/hdf5/HDF5IO.hpp index 21fde096..7cab75cc 100644 --- a/src/hdf5/HDF5IO.hpp +++ b/src/hdf5/HDF5IO.hpp @@ -319,7 +319,7 @@ class HDF5RecordingData : public BaseRecordingData * @brief Gets a const pointer to the HDF5 dataset. * @return A const pointer to the HDF5 dataset. */ - const H5::DataSet* getDataSet(); + inline const H5::DataSet* getDataSet() const { return this->m_dataset.get(); } private: /**