Commit d59cfb2f authored by Frank Meerkoetter's avatar Frank Meerkoetter
Browse files

Fix dead stores in the modelinglib



Found via the clang-static-analyzer

Change-Id: Ic035a88d26b2a096d293133eb4638a090ac5a5c2
Reviewed-by: default avatarJochen Becher <jochen_becher@gmx.de>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 43258f91
...@@ -358,7 +358,6 @@ void ComponentItem::updateGeometry() ...@@ -358,7 +358,6 @@ void ComponentItem::updateGeometry()
m_contextLabel->setMaxWidth(maxContextWidth); m_contextLabel->setMaxWidth(maxContextWidth);
} }
m_contextLabel->setPos(-m_contextLabel->boundingRect().width() / 2.0, y); m_contextLabel->setPos(-m_contextLabel->boundingRect().width() / 2.0, y);
y += m_contextLabel->boundingRect().height();
} }
updateSelectionMarkerGeometry(rect); updateSelectionMarkerGeometry(rect);
......
...@@ -252,7 +252,6 @@ void DiagramItem::updateGeometry() ...@@ -252,7 +252,6 @@ void DiagramItem::updateGeometry()
} }
if (nameItem()) { if (nameItem()) {
nameItem()->setPos(-nameItem()->boundingRect().width() / 2.0, y); nameItem()->setPos(-nameItem()->boundingRect().width() / 2.0, y);
y += nameItem()->boundingRect().height();
} }
updateSelectionMarkerGeometry(rect); updateSelectionMarkerGeometry(rect);
......
...@@ -291,7 +291,6 @@ void ItemItem::updateGeometry() ...@@ -291,7 +291,6 @@ void ItemItem::updateGeometry()
m_contextLabel->setMaxWidth(maxContextWidth); m_contextLabel->setMaxWidth(maxContextWidth);
} }
m_contextLabel->setPos(-m_contextLabel->boundingRect().width() / 2.0, y); m_contextLabel->setPos(-m_contextLabel->boundingRect().width() / 2.0, y);
y += m_contextLabel->boundingRect().height();
} }
updateSelectionMarkerGeometry(rect); updateSelectionMarkerGeometry(rect);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment