Skip to content

Commit

Permalink
Remove unnecessary re-creation of data buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed May 3, 2023
1 parent b1fc1f0 commit f6898c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/templates/SIOBlock.cc.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ void {{ block_class }}::read(sio::read_device& device, sio::version_type version
if (not m_subsetColl) {
unsigned size(0);
device.data( size );
m_buffers.data = new std::vector<{{ class.full_type }}Data>(size);
auto* dataVec = m_buffers.dataAsVector<{{ class.full_type }}Data>();
dataVec->resize(size);
podio::handlePODDataSIO(device, dataVec->data(), size);
}

Expand Down

0 comments on commit f6898c1

Please sign in to comment.