VirtualBox

Changeset 98100 in vbox


Ignore:
Timestamp:
Jan 17, 2023 10:56:32 AM (23 months ago)
Author:
vboxsync
Message:

Main: Nits.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r98097 r98100  
    50845084                if (fHotplug)
    50855085                {
    5086                     USBStorageDevice UsbMsd = USBStorageDevice();
     5086                    USBStorageDevice UsbMsd;
    50875087                    RTUuidCreate(&UsbMsd.mUuid);
    50885088                    UsbMsd.iPort = uInstance;
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r98035 r98100  
    38733873
    38743874    bool fSilent = false;
    3875     Utf8Str strReconfig;
    38763875
    38773876    /* Check whether the flag to allow silent storage attachment reconfiguration is set. */
    3878     strReconfig = i_getExtraData(Utf8Str("VBoxInternal2/SilentReconfigureWhilePaused"));
     3877    Utf8Str const strReconfig = i_getExtraData(Utf8Str("VBoxInternal2/SilentReconfigureWhilePaused"));
    38793878    if (   mData->mMachineState == MachineState_Paused
    38803879        && strReconfig == "1")
     
    39003899
    39013900    /* check if the device slot is already busy */
    3902     MediumAttachment *pAttachTemp;
    3903     if ((pAttachTemp = i_findAttachment(*mMediumAttachments.data(),
    3904                                         aName,
    3905                                         aControllerPort,
    3906                                         aDevice)))
     3901    MediumAttachment *pAttachTemp = i_findAttachment(*mMediumAttachments.data(),
     3902                                                     aName,
     3903                                                     aControllerPort,
     3904                                                     aDevice);
     3905    if (pAttachTemp)
    39073906    {
    39083907        Medium *pMedium = pAttachTemp->i_getMedium();
     
    39323931    AutoWriteLock mediumLock(medium COMMA_LOCKVAL_SRC_POS);
    39333932
    3934     if (    (pAttachTemp = i_findAttachment(*mMediumAttachments.data(), medium))
     3933    pAttachTemp = i_findAttachment(*mMediumAttachments.data(), medium);
     3934    if (    pAttachTemp
    39353935         && !medium.isNull()
    39363936         && (   medium->i_getType() != MediumType_Readonly
     
    39863986             * changing attachments in which case the attachment just needs to
    39873987             * be restored */
    3988             if ((pAttachTemp = i_findAttachment(oldAtts, medium)))
     3988            pAttachTemp = i_findAttachment(oldAtts, medium);
     3989            if (pAttachTemp)
    39893990            {
    39903991                AssertReturn(!fIndirect, E_FAIL);
  • trunk/src/VBox/Main/src-server/MediumLock.cpp

    r96407 r98100  
    298298
    299299HRESULT MediumLockListMap::Insert(const ComObjPtr<MediumAttachment> &aMediumAttachment,
    300                               MediumLockList *aMediumLockList)
     300                                  MediumLockList *aMediumLockList)
    301301{
    302302    if (mIsLocked)
     
    307307
    308308HRESULT MediumLockListMap::ReplaceKey(const ComObjPtr<MediumAttachment> &aMediumAttachmentOld,
    309                                   const ComObjPtr<MediumAttachment> &aMediumAttachmentNew)
     309                                      const ComObjPtr<MediumAttachment> &aMediumAttachmentNew)
    310310{
    311311    MediumLockListMap::Base::iterator it = mMediumLocks.find(aMediumAttachmentOld);
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