forked from qt-creator/qt-creator
Version control: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: I85c007045efdb207f397b42fbce7a554ac9c9819 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
committed by
Tobias Hunger
parent
cdae5f2102
commit
e2ace515e2
@@ -116,7 +116,7 @@ static bool checkLine(const QString &stateInfo, const QString &file, QList<Commi
|
||||
QTC_ASSERT(stateInfo.count() == 2, return false);
|
||||
QTC_ASSERT(files, return false);
|
||||
|
||||
if (stateInfo == "??") {
|
||||
if (stateInfo == QLatin1String("??")) {
|
||||
files->append(qMakePair(CommitData::UntrackedFile, file));
|
||||
return true;
|
||||
}
|
||||
@@ -157,12 +157,12 @@ bool CommitData::parseFilesFromStatus(const QString &output)
|
||||
if (line.isEmpty())
|
||||
continue;
|
||||
|
||||
if (line.startsWith("## ")) {
|
||||
if (line.startsWith(QLatin1String("## "))) {
|
||||
// Branch indication:
|
||||
panelInfo.branch = line.mid(3);
|
||||
continue;
|
||||
}
|
||||
QTC_ASSERT(line.at(2) == ' ', continue);
|
||||
QTC_ASSERT(line.at(2) == QLatin1Char(' '), continue);
|
||||
if (!checkLine(line.mid(0, 2), line.mid(3), &files))
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user