From da6b88ed99e116d84b6ddb6e02f955bbdd03063a Mon Sep 17 00:00:00 2001 From: Enrico Guiraud <enrico.guiraud@cern.ch> Date: Fri, 18 Aug 2017 14:56:13 +0200 Subject: [PATCH] [TDF] Avoid useless string instantiation --- tree/treeplayer/inc/ROOT/TDFInterface.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tree/treeplayer/inc/ROOT/TDFInterface.hxx b/tree/treeplayer/inc/ROOT/TDFInterface.hxx index d0c7864c97b..020fbd2275c 100644 --- a/tree/treeplayer/inc/ROOT/TDFInterface.hxx +++ b/tree/treeplayer/inc/ROOT/TDFInterface.hxx @@ -308,8 +308,7 @@ public: auto nColumns = TTraits::CallableTraits<F>::arg_types::list_size; const auto validColumnNames = GetValidatedColumnNames(*loopManager, nColumns, columns); using B_t = TDFDetail::TCustomColumn<F, Proxied>; - const std::string nameInt(name); - auto BranchPtr = std::make_shared<B_t>(nameInt, std::move(expression), validColumnNames, *fProxiedPtr); + auto BranchPtr = std::make_shared<B_t>(name, std::move(expression), validColumnNames, *fProxiedPtr); loopManager->Book(BranchPtr); return TInterface<B_t>(BranchPtr, fImplWeakPtr); } -- GitLab