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
No related merge requests found
......@@ -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;
......
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