Skip to content

Commit

Permalink
Automatic ClangTidyPerformance code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 199449250
  • Loading branch information
Googler authored and Copybara-Service committed Jun 6, 2018
1 parent fbd9e6d commit 188a29a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/cpp/test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ void ParseStartupOptionsAndExpectWarning(
const std::vector<std::string>& options_to_parse,
const std::string& expected_warning) {
std::vector<RcStartupFlag> flags;
for (std::string option : options_to_parse) {
flags.reserve(options_to_parse.size());
for (const std::string& option : options_to_parse) {
flags.push_back(RcStartupFlag("", option));
}

Expand Down

0 comments on commit 188a29a

Please sign in to comment.