aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/cpp
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2018-06-06 05:29:15 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-06-06 05:30:44 -0700
commit188a29a7ae5bd0670661672bbe1739b1f244ca90 (patch)
tree1d3115e5eb892c14d8d43a9307226cd1431bba78 /src/test/cpp
parentfbd9e6d46f0578125e75b923c3b63ae8998e64a5 (diff)
Automatic ClangTidyPerformance code cleanup.
PiperOrigin-RevId: 199449250
Diffstat (limited to 'src/test/cpp')
-rw-r--r--src/test/cpp/test_util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/cpp/test_util.cc b/src/test/cpp/test_util.cc
index f56fd8798b..c9e2698ee4 100644
--- a/src/test/cpp/test_util.cc
+++ b/src/test/cpp/test_util.cc
@@ -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));
}