VirtualBox

Changeset 30956 in vbox for trunk/src/VBox/Main/testcase


Ignore:
Timestamp:
Jul 21, 2010 12:59:12 PM (15 years ago)
Author:
vboxsync
Message:

Main: move VirtualBox::UnregisterMachine() to Machine::Unregister(); rename Machine::DeleteSettings() to Machine::Delete()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstOVF.cpp

    r30931 r30956  
    350350            RTPrintf("  Deleting machine %ls...\n", bstrUUID.raw());
    351351            SafeArray<BSTR> sfaFiles;
    352             rc = pVirtualBox->UnregisterMachine(bstrUUID,
    353                                                 true /* fDetachMedia */,
    354                                                 ComSafeArrayAsOutParam(sfaFiles),
    355                                                 pMachine.asOutParam());
    356             if (FAILED(rc)) throw MyError(rc, "VirtualBox::UnregisterMachine() failed\n");
     352            rc = pMachine->Unregister(true /* fDetachMedia */,
     353                                      ComSafeArrayAsOutParam(sfaFiles));
     354            if (FAILED(rc)) throw MyError(rc, "Machine::Unregister() failed\n");
    357355
    358356            for (size_t u = 0;
     
    364362            }
    365363
    366             rc = pMachine->DeleteSettings();
     364            rc = pMachine->Delete();
    367365            if (FAILED(rc)) throw MyError(rc, "Machine::DeleteSettings() failed\n");
    368366        }
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