VirtualBox

Changeset 42890 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Aug 20, 2012 5:45:13 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80177
Message:

Main/Machine: initializer method cleanup, makes the code easier to read

Location:
trunk/src/VBox/Main/src-server
Files:
2 edited

Legend:

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

    r42875 r42890  
    395395 *  @return  Success indicator. if not S_OK, the machine object is invalid
    396396 */
    397 HRESULT Machine::init(VirtualBox *aParent,
    398                       const Utf8Str &strConfigFile,
    399                       const Guid *aId)
     397HRESULT Machine::initFromSettings(VirtualBox *aParent,
     398                                  const Utf8Str &strConfigFile,
     399                                  const Guid *aId)
    400400{
    401401    LogFlowThisFuncEnter();
     
    80458045        if (mData->mFirstSnapshot)
    80468046        {
    8047             // snapshots tree is protected by media write lock; strictly
     8047            // snapshots tree is protected by machine write lock; strictly
    80488048            // this isn't necessary here since we're deleting the entire
    80498049            // machine, but otherwise we assert in Snapshot::uninit()
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r42888 r42890  
    607607        if (SUCCEEDED(rc = pMachine.createObject()))
    608608        {
    609             rc = pMachine->init(this,
    610                                 xmlMachine.strSettingsFile,
    611                                 &uuid);
     609            rc = pMachine->initFromSettings(this,
     610                                            xmlMachine.strSettingsFile,
     611                                            &uuid);
    612612            if (SUCCEEDED(rc))
    613613                rc = registerMachine(pMachine);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette