VirtualBox

Ignore:
Timestamp:
Sep 27, 2010 7:00:22 PM (14 years ago)
Author:
vboxsync
Message:

com/Guid: remove conversion operators to eliminate any compiler surprises. Caught one totally unexpected issue which was indirectly caused by the similar Bstr cleanup, as there still is a Bstr->Guid conversion and thus the Guid magic was triggered

File:
1 edited

Legend:

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

    r32727 r32780  
    300300
    301301        mUserData->s.strName = strName;
    302         mUserData->s.fNameSync = aNameSync;
     302        mUserData->s.fNameSync = !!aNameSync;
    303303
    304304        /* initialize the default snapshots folder
     
    890890    {
    891891        errorInfo->init(mData->mAccessError.getResultCode(),
    892                         mData->mAccessError.getInterfaceID(),
     892                        mData->mAccessError.getInterfaceID().ref(),
    893893                        Utf8Str(mData->mAccessError.getComponent()).c_str(),
    894894                        Utf8Str(mData->mAccessError.getText()));
     
    69526952                                data.hardware,
    69536953                                data.storage,
    6954                                 data.uuid,
     6954                                data.uuid.ref(),
    69556955                                strStateFile);
    69566956    if (FAILED(rc)) return rc;
     
    74637463        aSnapshot = mData->mFirstSnapshot;
    74647464    else
    7465         aSnapshot = mData->mFirstSnapshot->findChildOrSelf(aId);
     7465        aSnapshot = mData->mFirstSnapshot->findChildOrSelf(aId.ref());
    74667466
    74677467    if (!aSnapshot)
     
    80908090        // memory
    80918091        data.ulMemorySizeMB = mHWData->mMemorySize;
    8092         data.fPageFusionEnabled = mHWData->mPageFusionEnabled;
     8092        data.fPageFusionEnabled = !!mHWData->mPageFusionEnabled;
    80938093
    80948094        // firmware
     
    1030310303    USBProxyService *service = mParent->host()->usbProxyService();
    1030410304    AssertReturn(service, E_FAIL);
    10305     return service->captureDeviceForVM(this, Guid(aId));
     10305    return service->captureDeviceForVM(this, Guid(aId).ref());
    1030610306#else
    1030710307    NOREF(aId);
     
    1032310323    USBProxyService *service = mParent->host()->usbProxyService();
    1032410324    AssertReturn(service, E_FAIL);
    10325     return service->detachDeviceFromVM(this, Guid(aId), !!aDone);
     10325    return service->detachDeviceFromVM(this, Guid(aId).ref(), !!aDone);
    1032610326#else
    1032710327    NOREF(aId);
     
    1121911219
    1122011220    /* remove the completed progress object */
    11221     mParent->removeProgress(mSnapshotData.mProgressId);
     11221    mParent->removeProgress(mSnapshotData.mProgressId.ref());
    1122211222
    1122311223    /* clear out the temporary saved state data */
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