Skip to content

Commit

Permalink
swapped function signature of fillDataInfo to follow convention
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Oct 30, 2020
1 parent 619edb7 commit ab84d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions h5pp/include/h5pp/details/h5ppScan.h
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ namespace h5pp::scan {
*/

template<typename DataType>
inline void fillDataInfo(const DataType &data, DataInfo &info, const Options &options = Options()) {
inline void fillDataInfo(DataInfo &info, const DataType &data, const Options &options = Options()) {
h5pp::logger::log->debug("Scanning metadata of datatype [{}]", h5pp::type::sfinae::type_name<DataType>());
// The point of passing options is to reinterpret the shape of the data and not to resize!
// The data container should already be resized before entering this function.
Expand Down Expand Up @@ -328,7 +328,7 @@ namespace h5pp::scan {
inline h5pp::DataInfo getDataInfo(const DataType &data, const Options &options = Options()) {
h5pp::DataInfo dataInfo;
// As long as the two selections have the same number of elements, the data can be transferred
fillDataInfo(data, dataInfo, options);
fillDataInfo(dataInfo, data, options);
return dataInfo;
}

Expand Down

0 comments on commit ab84d77

Please sign in to comment.