Changeset 26707 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 23, 2010 2:15:16 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.h
r26706 r26707 35 35 UIActionType_Simple, 36 36 UIActionType_Toggle, 37 UIActionType_Menu, 38 39 /** The usual 32-bit type hack. */ 40 UIActionType_32Bit_Hack = 0x7fffffff 37 UIActionType_Menu 41 38 }; 42 39 … … 100 97 #endif 101 98 102 UIActionIndex_End, 103 /** The usual 32-bit type hack. */ 104 UIActionIndex_32Bit_Hack = 0x7fffffff 99 UIActionIndex_End 105 100 }; 106 101 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r26637 r26707 161 161 UIIndicatorsPool::UIIndicatorsPool(QObject *pParent) 162 162 : QObject(pParent) 163 { 164 /* Resize & clean actions vector */ 165 m_IndicatorsPool.resize(UIIndicatorIndex_Max); 166 for (int i = 0; i < m_IndicatorsPool.size(); ++ i) 167 m_IndicatorsPool[i] = 0; 163 , m_IndicatorsPool(UIIndicatorIndex_End, 0) 164 { 168 165 } 169 166 170 167 UIIndicatorsPool::~UIIndicatorsPool() 171 168 { 172 for (int i = 0; i < m_IndicatorsPool.size(); ++ 169 for (int i = 0; i < m_IndicatorsPool.size(); ++i) 173 170 { 174 171 delete m_IndicatorsPool[i]; … … 180 177 QIStateIndicator* UIIndicatorsPool::indicator(UIIndicatorIndex index) 181 178 { 182 if (!m_IndicatorsPool [index])179 if (!m_IndicatorsPool.at(index)) 183 180 { 184 181 switch (index) … … 212 209 } 213 210 } 214 return m_IndicatorsPool [index];211 return m_IndicatorsPool.at(index); 215 212 } 216 213 217 214 #include "UIIndicatorsPool.moc" 215 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.h
r26637 r26707 37 37 UIIndicatorIndex_Mouse, 38 38 UIIndicatorIndex_Hostkey, 39 UIIndicatorIndex_ Max39 UIIndicatorIndex_End 40 40 }; 41 41
Note:
See TracChangeset
for help on using the changeset viewer.