1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

copy: Use StringBuilder::join()

This commit is contained in:
Andreas Kling 2020-03-20 14:40:17 +01:00
parent 5db8940c9e
commit 3823d13e21
Notes: sideshowbarker 2024-07-19 08:13:00 +09:00

View file

@ -66,13 +66,7 @@ Options parse_options(int argc, char* argv[])
} else {
// Copy the rest of our command-line args.
StringBuilder builder;
bool first = true;
for (auto& word : text) {
if (!first)
builder.append(' ');
first = false;
builder.append(word);
}
builder.join(' ', text);
options.data = builder.to_string();
}