VirtualBox

Ignore:
Timestamp:
Mar 3, 2009 9:16:15 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43608
Message:

#3551: “Main: Replace remaining collections with safe arrays”
Replace SnapshotCollection. Reviewed by dmik. Tested with GUI.

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

Legend:

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

    r17255 r17260  
    26712671                               regExp.cap (1).toInt() : maxSnapShotIndex;
    26722672        /* Traversing to the next child */
    2673         index = index.GetChildren().GetItemAt (0);
     2673        index = index.GetChildren()[0];
    26742674    }
    26752675    dlg.mLeName->setText (snapShotName.arg (maxSnapShotIndex + 1));
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotsWgt.cpp

    r13580 r17260  
    800800    }
    801801
    802     CSnapshotEnumerator en = aSnapshot.GetChildren().Enumerate();
    803     while (en.HasMore())
    804     {
    805         CSnapshot sn = en.GetNext();
     802    CSnapshotVector snapvec = aSnapshot.GetChildren();
     803    for (int i = 0; i < snapvec.size(); ++i)
     804    {
     805        CSnapshot sn = snapvec[i];
    806806        populateSnapshots (sn, si);
    807807    }
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