Skip to content

Commit

Permalink
Avoid unnecessary copy
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 5, 2024
1 parent cbfc2b8 commit 7a21523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RNTupleWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ void RNTupleWriter::writeFrame(const podio::Frame& frame, const std::string& cat
// &const_cast<podio::GenericParameters&>(frame.getParameters()));
}

auto params = frame.getParameters();
const auto& params = frame.getParameters();
fillParams<int>(params, catInfo, entry.get());
fillParams<float>(params, catInfo, entry.get());
fillParams<double>(params, catInfo, entry.get());
Expand Down

0 comments on commit 7a21523

Please sign in to comment.