reduce usage of pointers / replace std::pair in SearchEngine

This commit is contained in:
Andrzej Rybczak
2012-08-28 02:44:08 +02:00
parent a270fc8402
commit 397783d701
17 changed files with 237 additions and 241 deletions

View File

@@ -55,9 +55,9 @@ class CaseInsensitiveSorting
return cmp(a, b) < 0;
}
bool operator()(MPD::Song *a, MPD::Song *b)
bool operator()(const MPD::Song &a, const MPD::Song &b)
{
return cmp(a->getName(), b->getName()) < 0;
return cmp(a.getName(), b.getName()) < 0;
}
template <typename A, typename B> bool operator()(const std::pair<A, B> &a, const std::pair<A, B> &b)