VirtualBox

Changeset 25151 in vbox


Ignore:
Timestamp:
Dec 2, 2009 3:23:18 PM (15 years ago)
Author:
vboxsync
Message:

Main: cleanup: std::list< ComOBjPtr<Medium> > typedefs

Location:
trunk/src/VBox/Main
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r25149 r25151  
    390390    AutoWriteLock alock(this);
    391391
    392     std::list< ComObjPtr<Medium> > list;
     392    MediaList list;
    393393    HRESULT rc = S_OK;
    394394    try
     
    514514    AutoWriteLock alock(this);
    515515
    516     std::list<ComObjPtr<Medium> > list;
     516    MediaList list;
    517517    HRESULT rc = S_OK;
    518518
  • trunk/src/VBox/Main/MachineImpl.cpp

    r25149 r25151  
    72857285    HRESULT rc = S_OK;
    72867286
    7287     typedef std::list< ComObjPtr<Medium> > LockedMedia;
    7288     LockedMedia lockedMedia;
     7287    MediaList lockedMedia;
    72897288
    72907289    try
     
    74177416        ErrorInfoKeeper eik;
    74187417
    7419         for (LockedMedia::const_iterator it = lockedMedia.begin();
     7418        for (MediaList::const_iterator it = lockedMedia.begin();
    74207419             it != lockedMedia.end();
    74217420             ++it)
  • trunk/src/VBox/Main/SnapshotImpl.cpp

    r25149 r25151  
    18121812        // images to delete _after_ saveSettings()
    18131813
    1814         std::list< ComObjPtr<Medium> > llDiffsToDelete;
     1814        MediaList llDiffsToDelete;
    18151815
    18161816        for (std::list< ComObjPtr<MediumAttachment> >::iterator it = llDiffAttachmentsToDelete.begin();
     
    18471847        // from here on we cannot roll back on failure any more
    18481848
    1849         for (std::list< ComObjPtr<Medium> >::iterator it = llDiffsToDelete.begin();
     1849        for (MediaList::iterator it = llDiffsToDelete.begin();
    18501850             it != llDiffsToDelete.end();
    18511851             ++it)
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r25149 r25151  
    9191typedef std::map<Guid, ComPtr<IProgress> > ProgressMap;
    9292
    93 typedef std::list <ComObjPtr<Medium> > HardDiskList;
    94 typedef std::list <ComObjPtr<Medium> > DVDImageList;
    95 typedef std::list <ComObjPtr<Medium> > FloppyImageList;
    9693typedef std::list <ComObjPtr<SharedFolder> > SharedFolderList;
    9794typedef std::list <ComObjPtr<DHCPServer> > DHCPServerList;
     
    206203    ProgressMap                         mapProgressOperations;
    207204
    208     HardDiskList                        llHardDisks;
    209     DVDImageList                        llDVDImages;
    210     FloppyImageList                     llFloppyImages;
     205    MediaList                           llHardDisks,
     206                                        llDVDImages,
     207                                        llFloppyImages;
    211208    SharedFolderList                    llSharedFolders;
    212209    DHCPServerList                      llDHCPServers;
     
    20092006void VirtualBox::dumpAllBackRefs()
    20102007{
    2011     for (HardDiskList::const_iterator mt = m->llHardDisks.begin();
     2008    for (MediaList::const_iterator mt = m->llHardDisks.begin();
    20122009         mt != m->llHardDisks.end();
    20132010         ++mt)
     
    20162013        pMedium->dumpBackRefs();
    20172014    }
    2018     for (DVDImageList::const_iterator mt = m->llDVDImages.begin();
     2015    for (MediaList::const_iterator mt = m->llDVDImages.begin();
    20192016         mt != m->llDVDImages.end();
    20202017         ++mt)
     
    28942891    bool found = false;
    28952892
    2896     for (DVDImageList::const_iterator it = m->llDVDImages.begin();
     2893    for (MediaList::const_iterator it = m->llDVDImages.begin();
    28972894         it != m->llDVDImages.end();
    28982895         ++ it)
     
    29702967    bool found = false;
    29712968
    2972     for (FloppyImageList::const_iterator it = m->llFloppyImages.begin();
     2969    for (MediaList::const_iterator it = m->llFloppyImages.begin();
    29732970         it != m->llFloppyImages.end();
    29742971         ++ it)
     
    32603257        // hard disks
    32613258        m->pMainConfigFile->llHardDisks.clear();
    3262         for (HardDiskList::const_iterator it = m->llHardDisks.begin();
     3259        for (MediaList::const_iterator it = m->llHardDisks.begin();
    32633260             it != m->llHardDisks.end();
    32643261             ++it)
     
    32723269        /* CD/DVD images */
    32733270        m->pMainConfigFile->llDvdImages.clear();
    3274         for (DVDImageList::const_iterator it = m->llDVDImages.begin();
     3271        for (MediaList::const_iterator it = m->llDVDImages.begin();
    32753272             it != m->llDVDImages.end();
    32763273             ++it)
     
    32843281        /* floppy images */
    32853282        m->pMainConfigFile->llFloppyImages.clear();
    3286         for (FloppyImageList::const_iterator it = m->llFloppyImages.begin();
     3283        for (MediaList::const_iterator it = m->llFloppyImages.begin();
    32873284             it != m->llFloppyImages.end();
    32883285             ++it)
     
    37703767
    37713768    /* check DVD paths */
    3772     for (DVDImageList::iterator it = m->llDVDImages.begin();
     3769    for (MediaList::iterator it = m->llDVDImages.begin();
    37733770         it != m->llDVDImages.end();
    37743771         ++ it)
    37753772    {
    3776         (*it)->updatePath (aOldPath, aNewPath);
     3773        (*it)->updatePath(aOldPath, aNewPath);
    37773774    }
    37783775
    37793776    /* check Floppy paths */
    3780     for (FloppyImageList::iterator it = m->llFloppyImages.begin();
     3777    for (MediaList::iterator it = m->llFloppyImages.begin();
    37813778         it != m->llFloppyImages  .end();
    37823779         ++ it)
    37833780    {
    3784         (*it)->updatePath (aOldPath, aNewPath);
     3781        (*it)->updatePath(aOldPath, aNewPath);
    37853782    }
    37863783
    37873784    /* check HardDisk paths */
    3788     for (HardDiskList::const_iterator it = m->llHardDisks.begin();
     3785    for (MediaList::const_iterator it = m->llHardDisks.begin();
    37893786         it != m->llHardDisks.end();
    37903787         ++ it)
    37913788    {
    3792         (*it)->updatePaths (aOldPath, aNewPath);
     3789        (*it)->updatePaths(aOldPath, aNewPath);
    37933790    }
    37943791
  • trunk/src/VBox/Main/include/MediumImpl.h

    r24989 r25151  
    3838
    3939////////////////////////////////////////////////////////////////////////////////
     40
     41class Medium;
     42typedef std::list< ComObjPtr<Medium> > MediaList;
    4043
    4144/**
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