Changeset 28678 in vbox
- Timestamp:
- Apr 23, 2010 6:21:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r28635 r28678 66 66 bool bAttachmentsPresent = false; 67 67 68 CStorageControllerVectorcontrollers = machine.GetStorageControllers();68 const CStorageControllerVector &controllers = machine.GetStorageControllers(); 69 69 foreach (const CStorageController &controller, controllers) 70 70 { 71 71 QString strAttData; 72 CMediumAttachmentVectorattachments = machine.GetMediumAttachmentsOfController(controller.GetName());72 const CMediumAttachmentVector &attachments = machine.GetMediumAttachmentsOfController(controller.GetName()); 73 73 foreach (const CMediumAttachment &attachment, attachments) 74 74 { … … 130 130 bool bAttachmentsPresent = false; 131 131 132 CStorageControllerVectorcontrollers = machine.GetStorageControllers();132 const CStorageControllerVector &controllers = machine.GetStorageControllers(); 133 133 foreach (const CStorageController &controller, controllers) 134 134 { 135 135 QString strAttData; 136 CMediumAttachmentVectorattachments = machine.GetMediumAttachmentsOfController(controller.GetName());136 const CMediumAttachmentVector &attachments = machine.GetMediumAttachmentsOfController(controller.GetName()); 137 137 foreach (const CMediumAttachment &attachment, attachments) 138 138 { … … 195 195 bool attachmentsPresent = false; 196 196 197 CStorageControllerVectorcontrollers = machine.GetStorageControllers();197 const CStorageControllerVector &controllers = machine.GetStorageControllers(); 198 198 foreach (const CStorageController &controller, controllers) 199 199 { 200 200 QString attData; 201 CMediumAttachmentVectorattachments = machine.GetMediumAttachmentsOfController (controller.GetName());201 const CMediumAttachmentVector &attachments = machine.GetMediumAttachmentsOfController (controller.GetName()); 202 202 foreach (const CMediumAttachment &attachment, attachments) 203 203 { … … 257 257 void updateAppearance() 258 258 { 259 CMachinemachine = m_session.GetMachine();259 const CMachine &machine = m_session.GetMachine(); 260 260 261 261 ulong uMaxCount = vboxGlobal().virtualBox().GetSystemProperties().GetNetworkAdapterCount(); … … 272 272 for (ulong uSlot = 0, uEnabled = 0; uSlot < uMaxCount; ++ uSlot) 273 273 { 274 CNetworkAdapteradapter = machine.GetNetworkAdapter(uSlot);274 const CNetworkAdapter &adapter = machine.GetNetworkAdapter(uSlot); 275 275 if (adapter.GetEnabled()) 276 276 { … … 346 346 QString strFullData; 347 347 348 CUSBControllerusbctl = machine.GetUSBController();348 const CUSBController &usbctl = machine.GetUSBController(); 349 349 setState(!usbctl.isNull() && usbctl.GetEnabled() && usbctl.GetProxyAvailable() ? KDeviceActivity_Idle : KDeviceActivity_Null); 350 350 if (!usbctl.isNull() && usbctl.GetEnabled()) … … 352 352 const CConsole &console = m_session.GetConsole(); 353 353 354 CUSBDeviceVectordevsvec = console.GetUSBDevices();354 const CUSBDeviceVector &devsvec = console.GetUSBDevices(); 355 355 for (int i = 0; i < devsvec.size(); ++ i) 356 356 { … … 408 408 409 409 /* Permanent folders */ 410 CSharedFolderVectorpsfvec = machine.GetSharedFolders();410 const CSharedFolderVector &psfvec = machine.GetSharedFolders(); 411 411 412 412 for (int i = 0; i < psfvec.size(); ++ i) 413 413 { 414 CSharedFoldersf = psfvec[i];414 const CSharedFolder &sf = psfvec[i]; 415 415 sfs.insert(sf.GetName(), sf.GetHostPath()); 416 416 } 417 417 418 418 /* Transient folders */ 419 CSharedFolderVectortsfvec = console.GetSharedFolders();419 const CSharedFolderVector &tsfvec = console.GetSharedFolders(); 420 420 421 421 for (int i = 0; i < tsfvec.size(); ++ i) 422 422 { 423 CSharedFoldersf = tsfvec[i];423 const CSharedFolder &sf = tsfvec[i]; 424 424 sfs.insert(sf.GetName(), sf.GetHostPath()); 425 425 } … … 472 472 void updateAppearance() 473 473 { 474 CVRDPServervrdpsrv = m_session.GetMachine().GetVRDPServer();474 const CVRDPServer &vrdpsrv = m_session.GetMachine().GetVRDPServer(); 475 475 if (!vrdpsrv.isNull()) 476 476 {
Note:
See TracChangeset
for help on using the changeset viewer.