Cleanup for b1dd97d
, thanks to Flössie
This commit is contained in:
@@ -604,13 +604,13 @@ void FileBrowser::addEntry_ (FileBrowserEntry* entry)
|
|||||||
std::lower_bound(
|
std::lower_bound(
|
||||||
fd.begin(),
|
fd.begin(),
|
||||||
fd.end(),
|
fd.end(),
|
||||||
(ThumbBrowserEntryBase*)entry,
|
entry,
|
||||||
[](ThumbBrowserEntryBase* a, ThumbBrowserEntryBase* b)
|
[](const ThumbBrowserEntryBase* a, const ThumbBrowserEntryBase* b)
|
||||||
{
|
{
|
||||||
return *b < *a;
|
return *a < *b;
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
(ThumbBrowserEntryBase*)entry
|
entry
|
||||||
);
|
);
|
||||||
|
|
||||||
initEntry (entry);
|
initEntry (entry);
|
||||||
|
@@ -167,9 +167,9 @@ public:
|
|||||||
void setPosition (int x, int y, int w, int h);
|
void setPosition (int x, int y, int w, int h);
|
||||||
void setOffset (int x, int y);
|
void setOffset (int x, int y);
|
||||||
|
|
||||||
bool operator< (ThumbBrowserEntryBase& other)
|
bool operator <(const ThumbBrowserEntryBase& other) const
|
||||||
{
|
{
|
||||||
return shortname.casefold() > other.shortname.casefold();
|
return shortname.casefold() < other.shortname.casefold();
|
||||||
}
|
}
|
||||||
|
|
||||||
ThumbBrowserEntryBase* getOriginal () const;
|
ThumbBrowserEntryBase* getOriginal () const;
|
||||||
|
Reference in New Issue
Block a user