forked from qt-creator/qt-creator
ModelEditor: Fix a number of trivial coverity issues
Change-Id: Ie61e017b993ac788284611fb40052e5f59521a56 Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -154,7 +154,7 @@ void DUpdateVisitor::visitMRelation(const MRelation *relation)
|
||||
// TODO improve performance of MDiagram::findDiagramElement
|
||||
DObject *endAObject = dynamic_cast<DObject *>(m_diagram->findDiagramElement(drelation->endAUid()));
|
||||
if (!endAObject || relation->endAUid() != endAObject->modelUid()) {
|
||||
isUpdating(true);
|
||||
(void) isUpdating(true);
|
||||
endAObject = 0;
|
||||
// TODO use DiagramController::findDelegate (and improve performance of that method)
|
||||
foreach (DElement *diagramElement, m_diagram->diagramElements()) {
|
||||
@@ -170,7 +170,7 @@ void DUpdateVisitor::visitMRelation(const MRelation *relation)
|
||||
}
|
||||
DObject *endBObject = dynamic_cast<DObject *>(m_diagram->findDiagramElement(drelation->endBUid()));
|
||||
if (!endBObject || relation->endBUid() != endBObject->modelUid()) {
|
||||
isUpdating(true);
|
||||
(void) isUpdating(true);
|
||||
endBObject = 0;
|
||||
// TODO use DiagramController::findDelegate
|
||||
foreach (DElement *diagramElement, m_diagram->diagramElements()) {
|
||||
|
||||
Reference in New Issue
Block a user