mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Userland: Use Core::ArgsParser's Vector<StringView> API everywhere
...and remove the Vector<String> variant since there are no remaining users of this API.
This commit is contained in:
parent
395ba619d8
commit
f1cc3d0fc4
17 changed files with 31 additions and 47 deletions
|
@ -30,7 +30,7 @@ int main(int argc, char** argv)
|
|||
auto audio_client = Audio::ClientConnection::construct();
|
||||
|
||||
String command = String::empty();
|
||||
Vector<String> arguments;
|
||||
Vector<StringView> arguments;
|
||||
bool human_mode = false;
|
||||
|
||||
Core::ArgsParser args_parser;
|
||||
|
@ -113,7 +113,7 @@ int main(int argc, char** argv)
|
|||
}
|
||||
values_to_set.set(AudioVariable::Volume, volume.value());
|
||||
} else if (variable.is_one_of("m"sv, "mute"sv)) {
|
||||
String& mute_text = arguments[++i];
|
||||
auto& mute_text = arguments[++i];
|
||||
bool mute;
|
||||
if (mute_text.equals_ignoring_case("true") || mute_text == "1") {
|
||||
mute = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue