Changeset 71580 in vbox
- Timestamp:
- Mar 30, 2018 10:33:47 AM (7 years ago)
- 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 2046 2046 2047 2047 /* static */ 2048 UIExtraDataManager *UIExtraDataManager:: m_spInstance = 0;2048 UIExtraDataManager *UIExtraDataManager::s_pInstance = 0; 2049 2049 const QString UIExtraDataManager::GlobalID = QUuid().toString().remove(QRegExp("[{}]")); 2050 2050 … … 2053 2053 { 2054 2054 /* Create/prepare instance if not yet exists: */ 2055 if (! m_spInstance)2055 if (!s_pInstance) 2056 2056 { 2057 2057 new UIExtraDataManager; 2058 m_spInstance->prepare();2058 s_pInstance->prepare(); 2059 2059 } 2060 2060 /* Return instance: */ 2061 return m_spInstance;2061 return s_pInstance; 2062 2062 } 2063 2063 … … 2066 2066 { 2067 2067 /* 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; 2072 2072 } 2073 2073 } … … 2245 2245 { 2246 2246 /* Connect to static instance: */ 2247 m_spInstance = this;2247 s_pInstance = this; 2248 2248 } 2249 2249 … … 2251 2251 { 2252 2252 /* Disconnect from static instance: */ 2253 m_spInstance = 0;2253 s_pInstance = 0; 2254 2254 } 2255 2255 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r71523 r71580 732 732 static QString extraDataKeyPerScreen(const QString &strBase, ulong uScreenIndex, bool fSameRuleForPrimary = false); 733 733 734 /** Singleton Extra-data Managerinstance. */735 static UIExtraDataManager * m_spInstance;734 /** Holds the singleton instance. */ 735 static UIExtraDataManager *s_pInstance; 736 736 737 737 /** Holds extra-data event-handler instance. */
Note:
See TracChangeset
for help on using the changeset viewer.