From b1480167be487d09ff46bb86ad02041fb28acff1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 11 Aug 2015 22:18:40 +0200 Subject: command/Request: add parser methods Wrapper for protocol/ArgParser.cxx. --- src/command/TagCommands.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/command/TagCommands.cxx') 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; -- cgit v1.2.3