From 554e778f549c569d6d0d9f7f7468c056ce958d4c Mon Sep 17 00:00:00 2001
From: scott snyder <snyder@bnl.gov>
Date: Sun, 27 Sep 2020 17:15:19 +0200
Subject: [PATCH] TrackVertexAssociationTool: Fix clang warnings.

Do not use std::move on non-lvalues.
---
 .../Root/MVATrackVertexAssociationTool.cxx                    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/MVATrackVertexAssociationTool.cxx b/InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/MVATrackVertexAssociationTool.cxx
index 3c7563ab8dce..16b2c4b3315d 100644
--- a/InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/MVATrackVertexAssociationTool.cxx
+++ b/InnerDetector/InDetRecTools/TrackVertexAssociationTool/Root/MVATrackVertexAssociationTool.cxx
@@ -241,7 +241,7 @@ StatusCode MVATrackVertexAssociationTool::initializeNetwork() {
   // For sequential:
   if (m_isSequential) {
     lwt::JSONConfig netDef = lwt::parse_json(netFile);
-    m_network = std::move(std::unique_ptr<lwt::LightweightNeuralNetwork>(new lwt::LightweightNeuralNetwork(netDef.inputs, netDef.layers, netDef.outputs)));
+    m_network = std::unique_ptr<lwt::LightweightNeuralNetwork>(new lwt::LightweightNeuralNetwork(netDef.inputs, netDef.layers, netDef.outputs));
   }
   // For functional:
   else {
@@ -251,7 +251,7 @@ StatusCode MVATrackVertexAssociationTool::initializeNetwork() {
       return StatusCode::FAILURE;
     }
     m_inputNodeName = netDef.inputs[0].name;
-    m_graph = std::move(std::unique_ptr<lwt::LightweightGraph>(new lwt::LightweightGraph(netDef)));
+    m_graph = std::unique_ptr<lwt::LightweightGraph>(new lwt::LightweightGraph(netDef));
   }
 
   return StatusCode::SUCCESS;
-- 
GitLab