Commit cbe16358 authored by Laurent Montel's avatar Laurent Montel

Avoid some memory allocations

Change-Id: I6f3cba58307babd9e34be0c3f52e25b5f67b23e3
Reviewed-by: default avatarJochen Becher <>
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <>
parent 47b4a081
......@@ -119,7 +119,7 @@ public:
return false;
// join other elements into this command
foreach (const DElement *otherElement, otherUpdateCommand->m_clonedElements.values()) {
foreach (const DElement *otherElement, otherUpdateCommand->m_clonedElements) {
if (!m_clonedElements.contains(otherElement->uid())) {
DCloneVisitor visitor;
......@@ -73,7 +73,7 @@ QList<Toolbar> StereotypeController::toolbars() const
QList<QString> StereotypeController::knownStereotypes(StereotypeIcon::Element stereotypeElement) const
QSet<QString> stereotypes;
foreach (const StereotypeIcon &icon, d->m_iconIdToStereotypeIconsMap.values()) {
foreach (const StereotypeIcon &icon, d->m_iconIdToStereotypeIconsMap) {
if (icon.elements().isEmpty() || icon.elements().contains(stereotypeElement))
stereotypes += icon.stereotypes();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment