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:
@@ -232,7 +232,7 @@ void GitoriousProjectWidget::setDescription(const QString &description,
|
||||
// Should the text contain an URL, extract
|
||||
// Do not fall for "(http://XX)", strip special characters
|
||||
static const QRegExp urlRegExp(QLatin1String("(http://[\\w\\.-]+/[a-zA-Z0-9/\\-&]*)"));
|
||||
Q_ASSERT(urlRegExp.isValid());
|
||||
QTC_CHECK(urlRegExp.isValid());
|
||||
if (urlRegExp.indexIn(description) != -1) {
|
||||
*url= urlRegExp.cap(1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user