forked from qt-creator/qt-creator
Git: De-noise
* Remove QLatin1{String|Char} where possible
* Use initializer lists for QStringList
Change-Id: I8479f87f4fc909b5d74d854956885564209538e4
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
539e33da02
commit
516161c875
@@ -47,7 +47,7 @@ stash@{2}: On <branch>: <message>
|
||||
|
||||
bool Stash::parseStashLine(const QString &l)
|
||||
{
|
||||
const QChar colon = QLatin1Char(':');
|
||||
const QChar colon = ':';
|
||||
const int branchPos = l.indexOf(colon);
|
||||
if (branchPos < 0)
|
||||
return false;
|
||||
@@ -55,7 +55,7 @@ bool Stash::parseStashLine(const QString &l)
|
||||
if (messagePos < 0)
|
||||
return false;
|
||||
// Branch spec
|
||||
const int onIndex = l.indexOf(QLatin1String("on "), branchPos + 2, Qt::CaseInsensitive);
|
||||
const int onIndex = l.indexOf("on ", branchPos + 2, Qt::CaseInsensitive);
|
||||
if (onIndex == -1 || onIndex >= messagePos)
|
||||
return false;
|
||||
// Happy!
|
||||
|
||||
Reference in New Issue
Block a user