forked from qt-creator/qt-creator
Replace Q_ASSERTs with QTC_ASSERTs
or even with QTC_CHECKs. Change-Id: I6df67f088bb2f944f0a1abd751fdb192db2be298 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -113,8 +113,8 @@ static CommitData::FileState stateFor(const QChar &c)
|
||||
|
||||
static bool checkLine(const QString &stateInfo, const QString &file, QList<CommitData::StateFilePair> *files)
|
||||
{
|
||||
Q_ASSERT(stateInfo.count() == 2);
|
||||
Q_ASSERT(files);
|
||||
QTC_ASSERT(stateInfo.count() == 2, return false);
|
||||
QTC_ASSERT(files, return false);
|
||||
|
||||
if (stateInfo == "??") {
|
||||
files->append(qMakePair(CommitData::UntrackedFile, file));
|
||||
|
||||
Reference in New Issue
Block a user