Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9070 from EOSIO/launcher_clang10_warnings
Browse files Browse the repository at this point in the history
fix two range-loop-construct warnings from clang10
  • Loading branch information
spoonincode committed May 9, 2020
2 parents 65ee036 + 31ce288 commit 4e7c45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/eosio-launcher/main.cpp
Expand Up @@ -101,7 +101,7 @@ struct local_identity {
}
catch (...) {
// not an ip address
for (const auto n : names) {
for (const auto& n : names) {
if (n == name)
return true;
}
Expand Down Expand Up @@ -1887,7 +1887,7 @@ void write_default_config(const bfs::path& cfg_file, const options_description &
}

std::ofstream out_cfg( bfs::path(cfg_file).make_preferred().string());
for(const boost::shared_ptr<bpo::option_description> od : cfg.options())
for(const boost::shared_ptr<bpo::option_description>& od : cfg.options())
{
if(!od->description().empty()) {
out_cfg << "# " << od->description() << std::endl;
Expand Down

0 comments on commit 4e7c45c

Please sign in to comment.