Commit 6a5205f3 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Micro-optimization for sorting sessions

Reviewed-by: dt
parent 073ff329
......@@ -989,10 +989,10 @@ QString SessionManager::activeSession() const
return m_sessionName;
}
bool caseInsensitiveLessThan(const QString &s1, const QString &s2)
{
return s1.toLower() < s2.toLower();
}
static bool caseInsensitiveLessThan(const QString &s1, const QString &s2)
{
return s1.compare(s2, Qt::CaseInsensitive) < 0;
}
QStringList SessionManager::sessions() const
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment