VirtualBox

Ignore:
Timestamp:
Dec 16, 2008 10:39:34 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
41079
Message:

#3282: Collection got replaced with safe array. Warning, windows builds/tests may break.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsNetwork.cpp

    r15110 r15570  
    674674    /* Load current inner list */
    675675    QList<QTreeWidgetItem*> itemsList;
    676     CHostNetworkInterfaceEnumerator en =
    677         vboxGlobal().virtualBox().GetHost().GetNetworkInterfaces().Enumerate();
    678     while (en.HasMore())
    679         itemsList << new VBoxNIListItem (en.GetNext().GetName());
     676    CHostNetworkInterfaceVector interfaces =
     677        vboxGlobal().virtualBox().GetHost().GetNetworkInterfaces();
     678    for (CHostNetworkInterfaceVector::ConstIterator it = interfaces.begin();
     679         it != interfaces.end(); ++it)
     680        itemsList << new VBoxNIListItem (it->GetName());
    680681
    681682    /* Save current list item name */
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