aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/TagCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-11 22:18:40 +0200
committerMax Kellermann <max@duempel.org>2015-08-11 23:02:34 +0200
commitb1480167be487d09ff46bb86ad02041fb28acff1 (patch)
treed819a825fb82c4258cc17d5f40793409f61600a1 /src/command/TagCommands.cxx
parente118e958f7f9b87054679ebf6102d6923abbba81 (diff)
downloadmpd-b1480167be487d09ff46bb86ad02041fb28acff1.tar.gz
mpd-b1480167be487d09ff46bb86ad02041fb28acff1.tar.xz
mpd-b1480167be487d09ff46bb86ad02041fb28acff1.zip
command/Request: add parser methods
Wrapper for protocol/ArgParser.cxx.
Diffstat (limited to 'src/command/TagCommands.cxx')
-rw-r--r--src/command/TagCommands.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/command/TagCommands.cxx b/src/command/TagCommands.cxx
index aa8cf139d..2690f39bf 100644
--- a/src/command/TagCommands.cxx
+++ b/src/command/TagCommands.cxx
@@ -22,7 +22,6 @@
#include "Request.hxx"
#include "CommandError.hxx"
#include "client/Client.hxx"
-#include "protocol/ArgParser.hxx"
#include "protocol/Result.hxx"
#include "tag/Tag.hxx"
#include "Partition.hxx"
@@ -32,7 +31,7 @@ CommandResult
handle_addtagid(Client &client, Request args)
{
unsigned song_id;
- if (!ParseCommandArg(client, song_id, args.front()))
+ if (!args.Parse(0, song_id, client))
return CommandResult::ERROR;
const char *const tag_name = args[1];
@@ -57,7 +56,7 @@ CommandResult
handle_cleartagid(Client &client, Request args)
{
unsigned song_id;
- if (!ParseCommandArg(client, song_id, args.front()))
+ if (!args.Parse(0, song_id, client))
return CommandResult::ERROR;
TagType tag_type = TAG_NUM_OF_ITEM_TYPES;