From 80aca3168404fc627e01b7f590244c38c43322c6 Mon Sep 17 00:00:00 2001 From: tetektoza Date: Tue, 2 Sep 2025 21:34:58 +0200 Subject: [PATCH] Gui: Use designated initializer in CommandView --- src/Gui/CommandView.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 36b86e3eed..8391f5def5 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -4046,12 +4046,11 @@ void StdCmdClarifySelection::activated(int iMsg) } // Create PickData with selection information - PickData pickData; - pickData.obj = obj; - pickData.element = elementName; - pickData.docName = obj->getDocument()->getName(); - pickData.objName = obj->getNameInDocument(); - pickData.subName = hasSubObject ? subName : elementName; + PickData pickData {.obj = obj, + .element = elementName, + .docName = obj->getDocument()->getName(), + .objName = obj->getNameInDocument(), + .subName = hasSubObject ? subName : elementName}; selections.push_back(pickData); }