summaryrefslogtreecommitdiff
path: root/src/command/DatabaseCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-09-02 07:53:32 +0200
committerMax Kellermann <max@musicpd.org>2018-09-02 08:17:22 +0200
commit590687fdea671c964445585b67209bacf5cfe876 (patch)
tree2f0d7fb0b42237ba5ae02eb3a3a56bd7b799bd37 /src/command/DatabaseCommands.cxx
parent993f8d6a5e4e2fc8a205e853e5f724143fbac788 (diff)
protocol/RangeArg: eliminate SetAll()
Diffstat (limited to 'src/command/DatabaseCommands.cxx')
-rw-r--r--src/command/DatabaseCommands.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/command/DatabaseCommands.cxx b/src/command/DatabaseCommands.cxx
index ade6a9362..50024a71e 100644
--- a/src/command/DatabaseCommands.cxx
+++ b/src/command/DatabaseCommands.cxx
@@ -74,14 +74,13 @@ ParseSortTag(const char *s)
static CommandResult
handle_match(Client &client, Request args, Response &r, bool fold_case)
{
- RangeArg window;
+ RangeArg window = RangeArg::All();
if (args.size >= 2 && StringIsEqual(args[args.size - 2], "window")) {
window = args.ParseRange(args.size - 1);
args.pop_back();
args.pop_back();
- } else
- window.SetAll();
+ }
TagType sort = TAG_NUM_OF_ITEM_TYPES;
bool descending = false;