aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/PlaylistCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-11 22:34:22 +0200
committerMax Kellermann <max@duempel.org>2015-08-11 22:43:10 +0200
commit9231f420c199a7c12cb8aad17bcca80a0aaca6ad (patch)
tree474755c86ced85b966a03bd79dfffbce48c17f43 /src/command/PlaylistCommands.cxx
parent0f92d021a1dc2992352b635846428229d2c9ffbb (diff)
downloadmpd-9231f420c199a7c12cb8aad17bcca80a0aaca6ad.tar.gz
mpd-9231f420c199a7c12cb8aad17bcca80a0aaca6ad.tar.xz
mpd-9231f420c199a7c12cb8aad17bcca80a0aaca6ad.zip
protocol/ArgParser: overload as ParseCommandArg(), pass references
Diffstat (limited to 'src/command/PlaylistCommands.cxx')
-rw-r--r--src/command/PlaylistCommands.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/command/PlaylistCommands.cxx b/src/command/PlaylistCommands.cxx
index 56da71078..f6f610d7a 100644
--- a/src/command/PlaylistCommands.cxx
+++ b/src/command/PlaylistCommands.cxx
@@ -146,8 +146,7 @@ handle_playlistdelete(Client &client, Request args)
{
const char *const name = args[0];
unsigned from;
-
- if (!check_unsigned(client, &from, args[1]))
+ if (!ParseCommandArg(client, from, args[1]))
return CommandResult::ERROR;
Error error;
@@ -161,10 +160,9 @@ handle_playlistmove(Client &client, Request args)
{
const char *const name = args.front();
unsigned from, to;
-
- if (!check_unsigned(client, &from, args[1]))
+ if (!ParseCommandArg(client, from, args[1]))
return CommandResult::ERROR;
- if (!check_unsigned(client, &to, args[2]))
+ if (!ParseCommandArg(client, to, args[2]))
return CommandResult::ERROR;
Error error;