Changeset 25151 in vbox
- Timestamp:
- Dec 2, 2009 3:23:18 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r25149 r25151 390 390 AutoWriteLock alock(this); 391 391 392 std::list< ComObjPtr<Medium> >list;392 MediaList list; 393 393 HRESULT rc = S_OK; 394 394 try … … 514 514 AutoWriteLock alock(this); 515 515 516 std::list<ComObjPtr<Medium> >list;516 MediaList list; 517 517 HRESULT rc = S_OK; 518 518 -
trunk/src/VBox/Main/MachineImpl.cpp
r25149 r25151 7285 7285 HRESULT rc = S_OK; 7286 7286 7287 typedef std::list< ComObjPtr<Medium> > LockedMedia; 7288 LockedMedia lockedMedia; 7287 MediaList lockedMedia; 7289 7288 7290 7289 try … … 7417 7416 ErrorInfoKeeper eik; 7418 7417 7419 for ( LockedMedia::const_iterator it = lockedMedia.begin();7418 for (MediaList::const_iterator it = lockedMedia.begin(); 7420 7419 it != lockedMedia.end(); 7421 7420 ++it) -
trunk/src/VBox/Main/SnapshotImpl.cpp
r25149 r25151 1812 1812 // images to delete _after_ saveSettings() 1813 1813 1814 std::list< ComObjPtr<Medium> >llDiffsToDelete;1814 MediaList llDiffsToDelete; 1815 1815 1816 1816 for (std::list< ComObjPtr<MediumAttachment> >::iterator it = llDiffAttachmentsToDelete.begin(); … … 1847 1847 // from here on we cannot roll back on failure any more 1848 1848 1849 for ( std::list< ComObjPtr<Medium> >::iterator it = llDiffsToDelete.begin();1849 for (MediaList::iterator it = llDiffsToDelete.begin(); 1850 1850 it != llDiffsToDelete.end(); 1851 1851 ++it) -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r25149 r25151 91 91 typedef std::map<Guid, ComPtr<IProgress> > ProgressMap; 92 92 93 typedef std::list <ComObjPtr<Medium> > HardDiskList;94 typedef std::list <ComObjPtr<Medium> > DVDImageList;95 typedef std::list <ComObjPtr<Medium> > FloppyImageList;96 93 typedef std::list <ComObjPtr<SharedFolder> > SharedFolderList; 97 94 typedef std::list <ComObjPtr<DHCPServer> > DHCPServerList; … … 206 203 ProgressMap mapProgressOperations; 207 204 208 HardDiskList llHardDisks;209 DVDImageList llDVDImages;210 FloppyImageListllFloppyImages;205 MediaList llHardDisks, 206 llDVDImages, 207 llFloppyImages; 211 208 SharedFolderList llSharedFolders; 212 209 DHCPServerList llDHCPServers; … … 2009 2006 void VirtualBox::dumpAllBackRefs() 2010 2007 { 2011 for ( HardDiskList::const_iterator mt = m->llHardDisks.begin();2008 for (MediaList::const_iterator mt = m->llHardDisks.begin(); 2012 2009 mt != m->llHardDisks.end(); 2013 2010 ++mt) … … 2016 2013 pMedium->dumpBackRefs(); 2017 2014 } 2018 for ( DVDImageList::const_iterator mt = m->llDVDImages.begin();2015 for (MediaList::const_iterator mt = m->llDVDImages.begin(); 2019 2016 mt != m->llDVDImages.end(); 2020 2017 ++mt) … … 2894 2891 bool found = false; 2895 2892 2896 for ( DVDImageList::const_iterator it = m->llDVDImages.begin();2893 for (MediaList::const_iterator it = m->llDVDImages.begin(); 2897 2894 it != m->llDVDImages.end(); 2898 2895 ++ it) … … 2970 2967 bool found = false; 2971 2968 2972 for ( FloppyImageList::const_iterator it = m->llFloppyImages.begin();2969 for (MediaList::const_iterator it = m->llFloppyImages.begin(); 2973 2970 it != m->llFloppyImages.end(); 2974 2971 ++ it) … … 3260 3257 // hard disks 3261 3258 m->pMainConfigFile->llHardDisks.clear(); 3262 for ( HardDiskList::const_iterator it = m->llHardDisks.begin();3259 for (MediaList::const_iterator it = m->llHardDisks.begin(); 3263 3260 it != m->llHardDisks.end(); 3264 3261 ++it) … … 3272 3269 /* CD/DVD images */ 3273 3270 m->pMainConfigFile->llDvdImages.clear(); 3274 for ( DVDImageList::const_iterator it = m->llDVDImages.begin();3271 for (MediaList::const_iterator it = m->llDVDImages.begin(); 3275 3272 it != m->llDVDImages.end(); 3276 3273 ++it) … … 3284 3281 /* floppy images */ 3285 3282 m->pMainConfigFile->llFloppyImages.clear(); 3286 for ( FloppyImageList::const_iterator it = m->llFloppyImages.begin();3283 for (MediaList::const_iterator it = m->llFloppyImages.begin(); 3287 3284 it != m->llFloppyImages.end(); 3288 3285 ++it) … … 3770 3767 3771 3768 /* check DVD paths */ 3772 for ( DVDImageList::iterator it = m->llDVDImages.begin();3769 for (MediaList::iterator it = m->llDVDImages.begin(); 3773 3770 it != m->llDVDImages.end(); 3774 3771 ++ it) 3775 3772 { 3776 (*it)->updatePath 3773 (*it)->updatePath(aOldPath, aNewPath); 3777 3774 } 3778 3775 3779 3776 /* check Floppy paths */ 3780 for ( FloppyImageList::iterator it = m->llFloppyImages.begin();3777 for (MediaList::iterator it = m->llFloppyImages.begin(); 3781 3778 it != m->llFloppyImages .end(); 3782 3779 ++ it) 3783 3780 { 3784 (*it)->updatePath 3781 (*it)->updatePath(aOldPath, aNewPath); 3785 3782 } 3786 3783 3787 3784 /* check HardDisk paths */ 3788 for ( HardDiskList::const_iterator it = m->llHardDisks.begin();3785 for (MediaList::const_iterator it = m->llHardDisks.begin(); 3789 3786 it != m->llHardDisks.end(); 3790 3787 ++ it) 3791 3788 { 3792 (*it)->updatePaths 3789 (*it)->updatePaths(aOldPath, aNewPath); 3793 3790 } 3794 3791 -
trunk/src/VBox/Main/include/MediumImpl.h
r24989 r25151 38 38 39 39 //////////////////////////////////////////////////////////////////////////////// 40 41 class Medium; 42 typedef std::list< ComObjPtr<Medium> > MediaList; 40 43 41 44 /**
Note:
See TracChangeset
for help on using the changeset viewer.