From f294a5efc546eda9f0d6d1b85603544f09053cbe Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Fri, 21 Jun 2024 07:09:34 -0500 Subject: [PATCH] Gui: Silence unused variable --- src/Gui/Tree.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 01b92c2180..f10b4e700b 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -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