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); }