Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6a5205f3
Commit
6a5205f3
authored
Jul 23, 2009
by
Thorbjørn Lindeijer
Browse files
Micro-optimization for sorting sessions
Reviewed-by: dt
parent
073ff329
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/session.cpp
View file @
6a5205f3
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment