VirtualBox

Changeset 62112 in vbox


Ignore:
Timestamp:
Jul 7, 2016 3:04:58 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108595
Message:

FE/Qt: Trying to please the cppcheck in QIStatusBarIndicator code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBarIndicator.cpp

    r60362 r62112  
    3333/* GUI includes: */
    3434# include "QIStatusBarIndicator.h"
     35
     36/* Other VBox includes: */
     37# include <iprt/assert.h>
    3538
    3639#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
     
    114117QITextStatusBarIndicator::QITextStatusBarIndicator(QWidget *pParent /* = 0 */)
    115118    : QIStatusBarIndicator(pParent)
     119    , m_pLabel(0)
    116120{
    117121    /* Create main-layout: */
     
    122126        pMainLayout->setContentsMargins(0, 0, 0, 0);
    123127        pMainLayout->setSpacing(0);
    124         /* Crete label: */
     128        /* Create label: */
    125129        m_pLabel = new QLabel;
    126130        if (m_pLabel)
     
    134138QString QITextStatusBarIndicator::text() const
    135139{
     140    AssertPtrReturn(m_pLabel, QString());
    136141    return m_pLabel->text();
    137142}
     
    139144void QITextStatusBarIndicator::setText(const QString &strText)
    140145{
     146    AssertPtrReturnVoid(m_pLabel);
    141147    m_pLabel->setText(strText);
    142148}
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