diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-02-16 20:08:14 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-02-16 20:08:14 +0100 |
commit | 173b012d0065e590a75b43f044c3760a71ba988c (patch) | |
tree | 65fc15eb0360680af767519101c7e5d76d345b58 /src/helpers.cpp | |
parent | 2a6e0fd7e8567d8706f0824c5ccc3736e5d74da3 (diff) |
use vector<string_pair> instead of map<string, string>
Diffstat (limited to 'src/helpers.cpp')
-rw-r--r-- | src/helpers.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/helpers.cpp b/src/helpers.cpp index e62d4542..273f8873 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -180,6 +180,15 @@ bool CaseInsensitiveSorting::operator()(string a, string b) return a < b; } +bool CaseInsensitiveSorting::operator()(const string_pair &a, const string_pair &b) +{ + string aa = a.first; + string bb = b.first; + ToLower(aa); + ToLower(bb); + return aa < bb; +} + bool CaseInsensitiveSorting::operator()(Song *sa, Song *sb) { string a = sa->GetName(); |