Use Glib::ustring::collate_key() for ThumbBrowserEntryBase::operator<()

Kudos to @heckflosse for having a nose for optimizations. 👍

Also kills unused `DirEntry` class.
This commit is contained in:
Flössie
2017-07-10 21:17:42 +02:00
parent f98ef980d9
commit c90046db13
3 changed files with 60 additions and 31 deletions

View File

@@ -88,6 +88,9 @@ protected:
// called during updateBackBuffer for custom overlays
virtual void customBackBufferUpdate (Cairo::RefPtr<Cairo::Context> c) {}
private:
const std::string collate_name;
public:
Thumbnail* thumbnail;
@@ -169,7 +172,7 @@ public:
bool operator <(const ThumbBrowserEntryBase& other) const
{
return shortname.casefold() < other.shortname.casefold();
return collate_name < other.collate_name;
}
ThumbBrowserEntryBase* getOriginal () const;