VirtualBox

Changeset 71580 in vbox for trunk/src


Ignore:
Timestamp:
Mar 30, 2018 10:33:47 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Forgot something in r121405.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/extradata
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r71523 r71580  
    20462046
    20472047/* static */
    2048 UIExtraDataManager *UIExtraDataManager::m_spInstance = 0;
     2048UIExtraDataManager *UIExtraDataManager::s_pInstance = 0;
    20492049const QString UIExtraDataManager::GlobalID = QUuid().toString().remove(QRegExp("[{}]"));
    20502050
     
    20532053{
    20542054    /* Create/prepare instance if not yet exists: */
    2055     if (!m_spInstance)
     2055    if (!s_pInstance)
    20562056    {
    20572057        new UIExtraDataManager;
    2058         m_spInstance->prepare();
     2058        s_pInstance->prepare();
    20592059    }
    20602060    /* Return instance: */
    2061     return m_spInstance;
     2061    return s_pInstance;
    20622062}
    20632063
     
    20662066{
    20672067    /* Destroy/cleanup instance if still exists: */
    2068     if (m_spInstance)
    2069     {
    2070         m_spInstance->cleanup();
    2071         delete m_spInstance;
     2068    if (s_pInstance)
     2069    {
     2070        s_pInstance->cleanup();
     2071        delete s_pInstance;
    20722072    }
    20732073}
     
    22452245{
    22462246    /* Connect to static instance: */
    2247     m_spInstance = this;
     2247    s_pInstance = this;
    22482248}
    22492249
     
    22512251{
    22522252    /* Disconnect from static instance: */
    2253     m_spInstance = 0;
     2253    s_pInstance = 0;
    22542254}
    22552255
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r71523 r71580  
    732732    static QString extraDataKeyPerScreen(const QString &strBase, ulong uScreenIndex, bool fSameRuleForPrimary = false);
    733733
    734     /** Singleton Extra-data Manager instance. */
    735     static UIExtraDataManager *m_spInstance;
     734    /** Holds the singleton instance. */
     735    static UIExtraDataManager *s_pInstance;
    736736
    737737    /** Holds extra-data event-handler instance. */
Note: See TracChangeset for help on using the changeset viewer.

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