From ca330bc9247e365803facb9538cd215f8c014ced Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Fri, 6 Jan 2017 17:02:23 +0100 Subject: Get rid of intermediate data structure when fetching directory contents --- src/utility/comparators.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/utility/comparators.h') diff --git a/src/utility/comparators.h b/src/utility/comparators.h index e26213da..9255be09 100644 --- a/src/utility/comparators.h +++ b/src/utility/comparators.h @@ -87,7 +87,9 @@ public: bool operator()(const MPD::Item &a, const MPD::Item &b) const; - bool operator()(const NC::Menu::Item &a, const NC::Menu::Item &b) const { + bool operator()(const NC::Menu::Item &a, + const NC::Menu::Item &b) const + { return (*this)(a.value(), b.value()); } }; -- cgit v1.2.3