Skip to content

Commit f0ace64

Browse files
committed
Revert "[ntuple] Simplify vector construction in friend page source"
This reverts commit a9ef733.
1 parent 2cd1af3 commit f0ace64

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tree/ntuple/v7/src/RPageSourceFriends.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,8 @@ ROOT::Experimental::Detail::RPageSourceFriends::LoadClusters(std::span<RCluster:
203203
{
204204
// The virtual friends page source does not pre-load any clusters itself. However, the underlying page sources
205205
// that are combined may well do it.
206-
return std::vector<std::unique_ptr<ROOT::Experimental::Detail::RCluster>>(clusterKeys.size(), nullptr);
206+
std::vector<std::unique_ptr<ROOT::Experimental::Detail::RCluster>> result;
207+
for (unsigned i = 0; i < clusterKeys.size(); ++i)
208+
result.push_back(nullptr);
209+
return result;
207210
}

0 commit comments

Comments
 (0)