Gui: Silence unused variable

This commit is contained in:
Chris Hennes
2024-06-21 07:09:34 -05:00
committed by wwmayer
parent 932c73f0de
commit f294a5efc5

View File

@@ -4694,7 +4694,7 @@ void DocumentItem::updateItemSelection(DocumentObjectItem* item)
// the selection observers can trigger a recreation of all DocumentObjectItem so that the
// passed 'item' can become a dangling pointer.
// Thus,'item' mustn't be accessed any more after altering the selection.
// For further details see the bug analsysis of #13107
// For further details see the bug analysis of #13107
bool selected = item->isSelected();
bool checked = item->checkState(0) == Qt::Checked;
@@ -4729,8 +4729,7 @@ void DocumentItem::updateItemSelection(DocumentObjectItem* item)
#ifdef FC_DEBUG
if (!subname.empty()) {
auto parentItem = item->getParentItem();
assert(parentItem);
assert(item->getParentItem());
}
#endif