Skip to content
Snippets Groups Projects
Commit 554e778f authored by scott snyder's avatar scott snyder
Browse files

TrackVertexAssociationTool: Fix clang warnings.

Do not use std::move on non-lvalues.
parent 20e9b098
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!36787TrackVertexAssociationTool: Fix clang warnings.
...@@ -241,7 +241,7 @@ StatusCode MVATrackVertexAssociationTool::initializeNetwork() { ...@@ -241,7 +241,7 @@ StatusCode MVATrackVertexAssociationTool::initializeNetwork() {
// For sequential: // For sequential:
if (m_isSequential) { if (m_isSequential) {
lwt::JSONConfig netDef = lwt::parse_json(netFile); 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: // For functional:
else { else {
...@@ -251,7 +251,7 @@ StatusCode MVATrackVertexAssociationTool::initializeNetwork() { ...@@ -251,7 +251,7 @@ StatusCode MVATrackVertexAssociationTool::initializeNetwork() {
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
m_inputNodeName = netDef.inputs[0].name; 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; return StatusCode::SUCCESS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment