VirtualBox

Changeset 107480 in vbox


Ignore:
Timestamp:
Jan 8, 2025 5:55:58 AM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166538
Message:

FE/Qt: bugref:3409: Settings selector: Fix for parfait warnings related to uninit member variable and redundant conditions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp

    r107479 r107480  
    402402UISelectorTreeViewItem::UISelectorTreeViewItem(QITreeView *pParent)
    403403    : QITreeViewItem(pParent)
     404    , m_iID(0)
    404405    , m_fHidden(false)
    405406{
     
    745746
    746747    const int iItemPosition = m_pRootItem->posOfChild(pItem);
    747     return pItem ? createIndex(iItemPosition, 0, pItem) : QModelIndex();
     748    return createIndex(iItemPosition, 0, pItem);
    748749}
    749750
     
    755756
    756757    const int iItemPosition = m_pRootItem->posOfChild(pItem);
    757     return pItem ? createIndex(iItemPosition, 0, pItem) : QModelIndex();
     758    return createIndex(iItemPosition, 0, pItem);
    758759}
    759760
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette