From 86e036c3933def22b6ff0eae5bcf9cd7103240e7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 13 Aug 2015 12:48:31 +0200 Subject: command: pass Response object to command callbacks --- src/command/TagCommands.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/command/TagCommands.cxx') diff --git a/src/command/TagCommands.cxx b/src/command/TagCommands.cxx index 35efa5859..2a7076bdc 100644 --- a/src/command/TagCommands.cxx +++ b/src/command/TagCommands.cxx @@ -28,10 +28,8 @@ #include "util/ConstBuffer.hxx" CommandResult -handle_addtagid(Client &client, Request args) +handle_addtagid(Client &client, Request args, Response &r) { - Response r(client); - unsigned song_id; if (!args.Parse(0, song_id, r)) return CommandResult::ERROR; @@ -54,10 +52,8 @@ handle_addtagid(Client &client, Request args) } CommandResult -handle_cleartagid(Client &client, Request args) +handle_cleartagid(Client &client, Request args, Response &r) { - Response r(client); - unsigned song_id; if (!args.Parse(0, song_id, r)) return CommandResult::ERROR; -- cgit v1.2.3