Get rid of intermediate data structure when fetching directory contents

This commit is contained in:
Andrzej Rybczak
2017-01-06 17:02:23 +01:00
parent 6d2ed00e6a
commit ca330bc924
2 changed files with 26 additions and 28 deletions

View File

@@ -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());
}
};