forked from qt-creator/qt-creator
New QTC_CHECK warning replacing QTC_ASSERT(x, /**/)
Warn if the condition fails, but otherwise don't change the execution flow. Change-Id: Id7b14c745109b66960add967b2a4ef8d31e1a546 Reviewed-on: http://codereview.qt.nokia.com/2389 Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -133,7 +133,7 @@ void PerforceSubmitEditor::updateFields()
|
||||
lines.removeLast(); // that is the empty line at the end
|
||||
|
||||
const QRegExp leadingTabPattern = QRegExp(QLatin1String("^\\t"));
|
||||
QTC_ASSERT(leadingTabPattern.isValid(), /**/);
|
||||
QTC_CHECK(leadingTabPattern.isValid());
|
||||
|
||||
lines.replaceInStrings(leadingTabPattern, QString());
|
||||
widget->setDescriptionText(lines.join(newLine));
|
||||
|
||||
Reference in New Issue
Block a user