This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch 10.0.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 5f45e399823029e387ca13b93f118783ac182fe5 Author: Damian Meden <[email protected]> AuthorDate: Tue Mar 12 10:26:29 2024 +0100 CID1534729: txnbox - avoid copying object. (#11134) (cherry picked from commit 1f066251ac7dbdf5c842f2c1e61be068055e430b) --- plugins/experimental/txn_box/plugin/src/text_block.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/experimental/txn_box/plugin/src/text_block.cc b/plugins/experimental/txn_box/plugin/src/text_block.cc index fea9d4b341..a514c4701c 100644 --- a/plugins/experimental/txn_box/plugin/src/text_block.cc +++ b/plugins/experimental/txn_box/plugin/src/text_block.cc @@ -482,8 +482,8 @@ Mod_as_text_block::operator()(Context &ctx, Feature &feature) { Feature zret; if (IndexFor(STRING) == feature.index()) { - auto tag = std::get<IndexFor(STRING)>(feature); // get the name. - zret = Ex_text_block::extract_block(ctx, tag); + auto const &tag = std::get<IndexFor(STRING)>(feature); // get the name. + zret = Ex_text_block::extract_block(ctx, tag); } if (is_nil(zret)) {
