Skip to content

Commit

Permalink
Fix unnecessary object copying
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminghuang authored and larryk85 committed Aug 26, 2020
1 parent 0f6c201 commit e859acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ void application::print_default_config(std::ostream& os) {
option_to_plug[opt->long_name()] = plug.second->name();
}

for(const boost::shared_ptr<bpo::option_description> od : my->_cfg_options.options())
for(const auto& od : my->_cfg_options.options())
{
if(!od->description().empty()) {
std::string desc = od->description();
Expand Down

0 comments on commit e859acc

Please sign in to comment.