From 756bf2441de1edc4a01e160072927b7a1927c706 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Tue, 17 Nov 2020 16:43:51 +0100 Subject: [PATCH] TrigHLTJetHypo: Fix clang warnings. Don't use std::move on non-lvalues. --- .../src/TrigJetHypoToolConfig_fastreduction.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Trigger/TrigHypothesis/TrigHLTJetHypo/src/TrigJetHypoToolConfig_fastreduction.cxx b/Trigger/TrigHypothesis/TrigHLTJetHypo/src/TrigJetHypoToolConfig_fastreduction.cxx index 4c4e6691b6d..5e7e446bb9f 100644 --- a/Trigger/TrigHypothesis/TrigHLTJetHypo/src/TrigJetHypoToolConfig_fastreduction.cxx +++ b/Trigger/TrigHypothesis/TrigHLTJetHypo/src/TrigJetHypoToolConfig_fastreduction.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ @@ -136,7 +136,7 @@ TrigJetHypoToolConfig_fastreduction::getCapacityCheckedConditions() const { // return an invalid optional if any src signals a problem for(const auto& cm : m_conditionMakers){ - conditions.push_back(std::make_unique<CapacityCheckedCondition>(std::move(cm->getCondition()))); + conditions.push_back(std::make_unique<CapacityCheckedCondition>(cm->getCondition())); } return std::make_optional<ConditionPtrs>(std::move(conditions)); @@ -148,7 +148,7 @@ TrigJetHypoToolConfig_fastreduction::getConditions() const { ConditionsMT conditions; for(const auto& cm : m_conditionMakers){ - conditions.push_back(std::move(cm->getCondition())); + conditions.push_back(cm->getCondition()); } return std::make_optional<ConditionsMT>(std::move(conditions)); -- GitLab