diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2017-01-06 17:02:23 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2017-01-06 17:02:23 +0100 |
commit | ca330bc9247e365803facb9538cd215f8c014ced (patch) | |
tree | ad3ec278cf210a6bd32c8321e0e9144c7457bd14 /src/utility/comparators.h | |
parent | 6d2ed00e6a4e80df8aabb9b19507f1449ce08a6e (diff) |
Get rid of intermediate data structure when fetching directory contents
Diffstat (limited to 'src/utility/comparators.h')
-rw-r--r-- | src/utility/comparators.h | 4 |
1 files changed, 3 insertions, 1 deletions
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<MPD::Item>::Item &a, const NC::Menu<MPD::Item>::Item &b) const { + bool operator()(const NC::Menu<MPD::Item>::Item &a, + const NC::Menu<MPD::Item>::Item &b) const + { return (*this)(a.value(), b.value()); } }; |