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

TrigConfIO: Fix clang warnings.

    
Avoid spurious copies in range-for.
parent 1b08b314
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/ */
#include "TrigConfIO/JsonFileWriterHLT.h" #include "TrigConfIO/JsonFileWriterHLT.h"
...@@ -36,12 +36,12 @@ TrigConf::JsonFileWriterHLT::writeJsonFile(const std::string & filename, const H ...@@ -36,12 +36,12 @@ TrigConf::JsonFileWriterHLT::writeJsonFile(const std::string & filename, const H
} }
json sequencers({}); json sequencers({});
for ( const auto [seqName, algsList]: menu.sequencers() ) { for ( const auto& [seqName, algsList]: menu.sequencers() ) {
json jSeq( algsList ); json jSeq( algsList );
sequencers[seqName] = jSeq; sequencers[seqName] = jSeq;
} }
json streams({}); json streams({});
for ( const auto stream: menu.streams() ) { for ( const auto& stream: menu.streams() ) {
json jStream({}); json jStream({});
jStream["name"] = stream["name"]; jStream["name"] = stream["name"];
jStream["type"] = stream["type"]; jStream["type"] = stream["type"];
......
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