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:
@@ -85,9 +85,9 @@ public:
|
||||
|
||||
VcsInfo *findInCache(const QString &dir)
|
||||
{
|
||||
Q_ASSERT(QDir(dir).isAbsolute());
|
||||
Q_ASSERT(!dir.endsWith(QLatin1Char('/')));
|
||||
Q_ASSERT(QDir::fromNativeSeparators(dir) == dir);
|
||||
QTC_ASSERT(QDir(dir).isAbsolute(), return 0);
|
||||
QTC_ASSERT(!dir.endsWith(QLatin1Char('/')), return 0);
|
||||
QTC_ASSERT(QDir::fromNativeSeparators(dir) == dir, return 0);
|
||||
|
||||
const QMap<QString, VcsInfo *>::const_iterator it = m_cachedMatches.constFind(dir);
|
||||
if (it != m_cachedMatches.constEnd())
|
||||
|
||||
Reference in New Issue
Block a user