Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed May 15, 2024
1 parent a9a0e0f commit 7aa8755
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions qschematic/items/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,8 @@ void Item::setHighlighted(bool highlighted)

// Ripple through children
for (QGraphicsItem* child : childItems()) {
Item* childItem = qgraphicsitem_cast<Item*>(child);
if (childItem) {
if (Item* childItem = qgraphicsitem_cast<Item*>(child); childItem)
childItem->setHighlighted(highlighted);
}
}
}

Expand Down

0 comments on commit 7aa8755

Please sign in to comment.