Skip to content

Commit d32a746

Browse files
Merge pull request #1390 from AtariDreams:default
PiperOrigin-RevId: 510549728 Change-Id: I4447197b56dc76aaf4dd4e78671de247af2a91e8
2 parents a0f9b46 + 6089a04 commit d32a746

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

absl/crc/internal/crc_cord_state.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void CrcCordState::Poison() {
121121
}
122122
} else {
123123
// Add a fake corrupt chunk.
124-
rep->prefix_crc.push_back(PrefixCrc(0, crc32c_t{1}));
124+
rep->prefix_crc.emplace_back(0, crc32c_t{1});
125125
}
126126
}
127127

absl/flags/internal/usage.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class FlagHelpPrettyPrinter {
130130
for (auto line : absl::StrSplit(str, absl::ByAnyChar("\n\r"))) {
131131
if (!tokens.empty()) {
132132
// Keep line separators in the input string.
133-
tokens.push_back("\n");
133+
tokens.emplace_back("\n");
134134
}
135135
for (auto token :
136136
absl::StrSplit(line, absl::ByAnyChar(" \t"), absl::SkipEmpty())) {

absl/flags/parse.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ bool ArgsList::ReadFromFlagfile(const std::string& flag_file_name) {
190190

191191
// This argument represents fake argv[0], which should be present in all arg
192192
// lists.
193-
args_.push_back("");
193+
args_.emplace_back("");
194194

195195
std::string line;
196196
bool success = true;
@@ -212,7 +212,7 @@ bool ArgsList::ReadFromFlagfile(const std::string& flag_file_name) {
212212
break;
213213
}
214214

215-
args_.push_back(std::string(stripped));
215+
args_.emplace_back(stripped);
216216
continue;
217217
}
218218

@@ -367,7 +367,7 @@ bool ReadFlagsFromEnv(const std::vector<std::string>& flag_names,
367367

368368
// This argument represents fake argv[0], which should be present in all arg
369369
// lists.
370-
args.push_back("");
370+
args.emplace_back("");
371371

372372
for (const auto& flag_name : flag_names) {
373373
// Avoid infinite recursion.
@@ -680,7 +680,7 @@ std::vector<char*> ParseCommandLineImpl(int argc, char* argv[],
680680
std::vector<std::string> flagfile_value;
681681

682682
std::vector<ArgsList> input_args;
683-
input_args.push_back(ArgsList(argc, argv));
683+
input_args.emplace_back(argc, argv);
684684

685685
std::vector<char*> output_args;
686686
std::vector<char*> positional_args;

0 commit comments

Comments
 (0)