forked from qt-creator/qt-creator
ModelEditor: Introduce QMT_ASSERT
This change shall solve a lot of Coverity findings Change-Id: I1e699f7363426e9b6008fc77d3f498fe3d968b4f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -190,7 +190,7 @@ void UpdateIncludeDependenciesVisitor::visitMComponent(qmt::MComponent *componen
|
||||
|
||||
int componentHighestAncestorIndex = componentAncestors.size() - 1;
|
||||
int includeComponentHighestAncestorIndex = includeComponentAncestors.size() - 1;
|
||||
QTC_ASSERT(componentAncestors.at(componentHighestAncestorIndex) == includeComponentAncestors.at(includeComponentHighestAncestorIndex), return);
|
||||
QMT_ASSERT(componentAncestors.at(componentHighestAncestorIndex) == includeComponentAncestors.at(includeComponentHighestAncestorIndex), return);
|
||||
while (componentHighestAncestorIndex > 0 && includeComponentHighestAncestorIndex > 0) {
|
||||
if (componentAncestors.at(componentHighestAncestorIndex) != includeComponentAncestors.at(includeComponentHighestAncestorIndex))
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user