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:
parent
5db8940c9e
commit
3823d13e21
Notes:
sideshowbarker
2024-07-19 08:13:00 +09:00
Author: https://github.com/awesomekling
Commit: 3823d13e21
1 changed files with 1 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue