Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephprince committed Apr 24, 2024
1 parent 0d4f0ac commit 98b1aff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/BaseIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ class BaseIO
* @param values The vector of string values of the dataset.
* @return The status of the dataset creation operation.
*/
virtual Status createStringDataSet(const std::string& path,
const std::vector<std::string>& values) = 0;
virtual Status createStringDataSet(
const std::string& path, const std::vector<std::string>& values) = 0;

/**
* @brief Creates a dataset that holds an array of references to groups within
Expand Down
8 changes: 4 additions & 4 deletions src/hdf5/HDF5IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,13 @@ Status HDF5IO::createStringDataSet(const std::string& path,

std::vector<const char*> cStrs;
cStrs.reserve(values.size());
for(const auto& str : values) {
cStrs.push_back(str.c_str());
for (const auto& str : values) {
cStrs.push_back(str.c_str());
}

std::unique_ptr<BaseRecordingData> dataset;
dataset = std::unique_ptr<BaseRecordingData>(
createDataSet(BaseDataType::V_STR, SizeArray{values.size()}, SizeArray{1}, path));
dataset = std::unique_ptr<BaseRecordingData>(createDataSet(
BaseDataType::V_STR, SizeArray {values.size()}, SizeArray {1}, path));
dataset->writeDataBlock(1, BaseDataType::V_STR, cStrs.data());

return Status::Success;
Expand Down

0 comments on commit 98b1aff

Please sign in to comment.