VirtualBox

Ignore:
Timestamp:
Mar 9, 2009 9:34:22 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43992
Message:

#3551: “Main: Replace remaining collections with safe arrays”
Replaced IUSBDeviceCollection. Reviewed by Christian.

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

Legend:

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

    r17377 r17553  
    19761976                mDevicesUSBMenu->setEnabled (isRunningOrPaused);
    19771977
    1978                 CUSBDeviceEnumerator en = cconsole.GetUSBDevices().Enumerate();
    1979                 while (en.HasMore())
     1978                CUSBDeviceVector devsvec = cconsole.GetUSBDevices();
     1979                for (int i = 0; i < devsvec.size(); ++i)
    19801980                {
    1981                     CUSBDevice usb = en.GetNext();
     1981                    CUSBDevice usb = devsvec[i];
    19821982                    info += QString ("<br><b><nobr>%1</nobr></b>")
    19831983                                     .arg (vboxGlobal().details (usb));
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r17476 r17553  
    55445544            {
    55455545                CUSBDevice attachedUSB =
    5546                     mConsole.GetUSBDevices().FindById (usb.GetId());
     5546                    mConsole.FindUSBDeviceById (usb.GetId());
    55475547                action->setChecked (!attachedUSB.isNull());
    55485548                action->setEnabled (dev.GetState() !=
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