diff options
author | Max Kellermann <max@duempel.org> | 2015-08-11 22:34:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-11 22:43:10 +0200 |
commit | 9231f420c199a7c12cb8aad17bcca80a0aaca6ad (patch) | |
tree | 474755c86ced85b966a03bd79dfffbce48c17f43 /src/command/OutputCommands.cxx | |
parent | 0f92d021a1dc2992352b635846428229d2c9ffbb (diff) | |
download | mpd-9231f420c199a7c12cb8aad17bcca80a0aaca6ad.tar.gz mpd-9231f420c199a7c12cb8aad17bcca80a0aaca6ad.tar.xz mpd-9231f420c199a7c12cb8aad17bcca80a0aaca6ad.zip |
protocol/ArgParser: overload as ParseCommandArg(), pass references
Diffstat (limited to '')
-rw-r--r-- | src/command/OutputCommands.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command/OutputCommands.cxx b/src/command/OutputCommands.cxx index b562dc406..885144168 100644 --- a/src/command/OutputCommands.cxx +++ b/src/command/OutputCommands.cxx @@ -34,7 +34,7 @@ handle_enableoutput(Client &client, Request args) assert(args.size == 1); unsigned device; - if (!check_unsigned(client, &device, args.front())) + if (!ParseCommandArg(client, device, args.front())) return CommandResult::ERROR; if (!audio_output_enable_index(client.partition.outputs, device)) { @@ -52,7 +52,7 @@ handle_disableoutput(Client &client, Request args) assert(args.size == 1); unsigned device; - if (!check_unsigned(client, &device, args.front())) + if (!ParseCommandArg(client, device, args.front())) return CommandResult::ERROR; if (!audio_output_disable_index(client.partition.outputs, device)) { @@ -70,7 +70,7 @@ handle_toggleoutput(Client &client, Request args) assert(args.size == 1); unsigned device; - if (!check_unsigned(client, &device, args.front())) + if (!ParseCommandArg(client, device, args.front())) return CommandResult::ERROR; if (!audio_output_toggle_index(client.partition.outputs, device)) { |