From 7f023701dd843749cf878baabeb3d33917fda62f Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 30 Apr 2022 09:43:07 -0400 Subject: Formatting: remove space in range-style for loops Change .clang-format and commit automated changes from a fresh run of format-code --- libqpdf/QPDFArgParser.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libqpdf/QPDFArgParser.cc') diff --git a/libqpdf/QPDFArgParser.cc b/libqpdf/QPDFArgParser.cc index 207946b8..8cd53efa 100644 --- a/libqpdf/QPDFArgParser.cc +++ b/libqpdf/QPDFArgParser.cc @@ -381,7 +381,7 @@ QPDFArgParser::readArgsFromFile(std::string const& filename) QTC::TC("libtests", "QPDFArgParser read args from file"); lines = QUtil::read_lines_from_file(filename.c_str()); } - for (auto const& line : lines) { + for (auto const& line: lines) { this->m->new_argv.push_back(QUtil::make_shared_cstr(line)); } } @@ -636,7 +636,7 @@ QPDFArgParser::addChoicesToCompletions( void QPDFArgParser::addOptionsToCompletions(option_table_t& option_table) { - for (auto& iter : option_table) { + for (auto& iter: option_table) { std::string const& arg = iter.first; if (arg == "--") { continue; @@ -797,7 +797,7 @@ QPDFArgParser::getTopHelp(std::ostringstream& msg) << " --help=all\" to see all available help." << std::endl << std::endl << "Topics:" << std::endl; - for (auto const& i : this->m->help_topics) { + for (auto const& i: this->m->help_topics) { msg << " " << i.first << ": " << i.second.short_text << std::endl; } } @@ -807,7 +807,7 @@ QPDFArgParser::getAllHelp(std::ostringstream& msg) { getTopHelp(msg); auto show = [this, &msg](std::map& topics) { - for (auto const& i : topics) { + for (auto const& i: topics) { auto const& topic = i.first; msg << std::endl << "== " << topic << " (" << i.second.short_text @@ -832,7 +832,7 @@ QPDFArgParser::getTopicHelp( } if (!ht.options.empty()) { msg << std::endl << "Related options:" << std::endl; - for (auto const& i : ht.options) { + for (auto const& i: ht.options) { msg << " " << i << ": " << this->m->option_help[i].short_text << std::endl; } -- cgit v1.2.3-54-g00ecf