protocol/ArgParser: overload as ParseCommandArg(), pass references
This commit is contained in:
@@ -32,7 +32,7 @@ CommandResult
|
||||
handle_addtagid(Client &client, Request args)
|
||||
{
|
||||
unsigned song_id;
|
||||
if (!check_unsigned(client, &song_id, args.front()))
|
||||
if (!ParseCommandArg(client, song_id, args.front()))
|
||||
return CommandResult::ERROR;
|
||||
|
||||
const char *const tag_name = args[1];
|
||||
@@ -57,7 +57,7 @@ CommandResult
|
||||
handle_cleartagid(Client &client, Request args)
|
||||
{
|
||||
unsigned song_id;
|
||||
if (!check_unsigned(client, &song_id, args.front()))
|
||||
if (!ParseCommandArg(client, song_id, args.front()))
|
||||
return CommandResult::ERROR;
|
||||
|
||||
TagType tag_type = TAG_NUM_OF_ITEM_TYPES;
|
||||
|
Reference in New Issue
Block a user