VirtualBox

Changeset 1469 in vbox


Ignore:
Timestamp:
Mar 14, 2007 2:54:19 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Don't pollute public namespace with one-time private methods.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r1381 r1469  
    338338    bool startMachine (const QUuid &id);
    339339
    340     void addMediaToList (const CUnknown&, VBoxDefs::DiskType);
    341 
    342340    void startEnumeratingMedia();
    343341
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r1441 r1469  
    11471147
    11481148/**
    1149  *  Appends media_list with passed disk & it's children
    1150  */
    1151 void VBoxGlobal::addMediaToList (const CUnknown &aDisk,
    1152                                  VBoxDefs::DiskType aType)
     1149 *  Appends the disk object and all its children to the media list.
     1150 */
     1151static
     1152void addMediaToList (VBoxMediaList &aList,
     1153                     const CUnknown &aDisk,
     1154                     VBoxDefs::DiskType aType)
    11531155{
    11541156    VBoxMedia media (aDisk, aType, VBoxMedia::Unknown);
    1155     media_list += media;
    1156     /* appending all vdi children */
     1157    aList += media;
     1158    /* append all vdi children */
    11571159    if (aType == VBoxDefs::HD)
    11581160    {
     
    11621164        {
    11631165            CHardDisk subHd = enumerator.GetNext();
    1164             addMediaToList (CUnknown (subHd), VBoxDefs::HD);
     1166            addMediaToList (aList, CUnknown (subHd), VBoxDefs::HD);
    11651167        }
    11661168    }
     
    11941196        CHardDiskEnumerator enHD = vbox.GetHardDisks().Enumerate();
    11951197        while (enHD.HasMore())
    1196             addMediaToList (CUnknown (enHD.GetNext()), VBoxDefs::HD);
     1198            addMediaToList (media_list, CUnknown (enHD.GetNext()), VBoxDefs::HD);
    11971199
    11981200        CDVDImageEnumerator enCD = vbox.GetDVDImages().Enumerate();
    11991201        while (enCD.HasMore())
    1200             addMediaToList (CUnknown (enCD.GetNext()), VBoxDefs::CD);
     1202            addMediaToList (media_list, CUnknown (enCD.GetNext()), VBoxDefs::CD);
    12011203
    12021204        CFloppyImageEnumerator enFD = vbox.GetFloppyImages().Enumerate();
    12031205        while (enFD.HasMore())
    1204             addMediaToList (CUnknown (enFD.GetNext()), VBoxDefs::FD);
     1206            addMediaToList (media_list, CUnknown (enFD.GetNext()), VBoxDefs::FD);
    12051207    }
    12061208
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette