VirtualBox

Changeset 37553 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 20, 2011 12:48:28 PM (14 years ago)
Author:
vboxsync
Message:

com: method for SafeArray -> RTCList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r37547 r37553  
    60836083    /* Convert the options. */
    60846084    RTCList<CloneOptions_T> optList;
    6085     if (options != NULL)
    6086     {
    6087          com::SafeArray<CloneOptions_T> sfaOpts(ComSafeArrayInArg(options));
    6088          for (size_t i = 0; i < sfaOpts.size(); ++i)
    6089              optList.append(sfaOpts[i]);
    6090 //        optList = SafeArrayToRTCList<CloneOptions_T>(ComSafeArrayInArg(options));
    6091     }
     6085        if (options != NULL)
     6086                optList = com::SafeArray<CloneOptions_T>(ComSafeArrayInArg(options)).toList();
     6087               
    60926088    AssertReturn(!optList.contains(CloneOptions_Link), E_NOTIMPL);
    60936089    AssertReturn(!(optList.contains(CloneOptions_KeepAllMACs) && optList.contains(CloneOptions_KeepNATMACs)), E_FAIL);
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