forked from qt-creator/qt-creator
qtcassert: move actual printing to separate function and enforce style
This also allows simple setting of breakpoints on failed asserts. Change-Id: I6dd84cbfaf659d57e39f3447386cebc0221b2b84 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -181,14 +181,14 @@ void SourcePathMappingModel::addRawMapping(const QString &source, const QString
|
||||
void SourcePathMappingModel::setSource(int row, const QString &s)
|
||||
{
|
||||
QStandardItem *sourceItem = item(row, SourceColumn);
|
||||
QTC_ASSERT(sourceItem, return; )
|
||||
QTC_ASSERT(sourceItem, return);
|
||||
sourceItem->setText(s.isEmpty() ? m_newSourcePlaceHolder : QDir::toNativeSeparators(s));
|
||||
}
|
||||
|
||||
void SourcePathMappingModel::setTarget(int row, const QString &t)
|
||||
{
|
||||
QStandardItem *targetItem = item(row, TargetColumn);
|
||||
QTC_ASSERT(targetItem, return; )
|
||||
QTC_ASSERT(targetItem, return);
|
||||
targetItem->setText(t.isEmpty() ? m_newTargetPlaceHolder : QDir::toNativeSeparators(t));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user