Skip to content

Commit 93fadc8

Browse files
committed
Fix cppcheck
1 parent 875482a commit 93fadc8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/ROOTFrameData.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ std::optional<podio::CollectionReadBuffers> ROOTFrameData::getCollectionBuffers(
1212
return std::nullopt;
1313
}
1414

15-
return std::move(bufferHandle.mapped());
15+
return {std::move(bufferHandle.mapped())};
1616
}
1717

1818
podio::CollectionIDTable ROOTFrameData::getIDTable() const {

src/ROOTReader.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ std::optional<podio::CollectionReadBuffers> ROOTReader::getCollectionBuffers(ROO
173173
}
174174
root_utils::readBranchesData(branches, localEntry);
175175

176-
return std::move(collBuffers);
176+
return {std::move(collBuffers)};
177177
}
178178

179179
ROOTReader::CategoryInfo& ROOTReader::getCategoryInfo(const std::string& category) {

0 commit comments

Comments
 (0)