mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 04:35:41 +08:00
Fix cppcheck warnings
This commit is contained in:
@@ -534,7 +534,11 @@ namespace BlackGui::Menus
|
||||
}
|
||||
Q_ASSERT_X(subMenu, Q_FUNC_INFO, "Could not create sub menu");
|
||||
|
||||
subMenu->setParent(parentMenu);
|
||||
if (subMenu)
|
||||
{
|
||||
subMenu->setParent(parentMenu);
|
||||
}
|
||||
|
||||
if (pathDepth > 0 && subMenu)
|
||||
{
|
||||
subMenus.insert(key, subMenu);
|
||||
|
||||
Reference in New Issue
Block a user