VirtualBox

Changeset 107686 in vbox


Ignore:
Timestamp:
Jan 10, 2025 4:34:50 PM (6 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166779
Message:

FE/Qt: bugref:3409: Runtime UI / UI session: Fixing parfait warning related to redundant condition check; Related to storage device stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r107412 r107686  
    765765            }
    766766
    767             /* Fill structure fields: */
     767            /* Fill and append structure fields: */
    768768            StorageDeviceInfo guiStorageDevice;
    769769            guiStorageDevice.m_strControllerName = strControllerName; // already confirmed
     
    801801                break;
    802802            }
    803             if (fSuccess)
    804             {
    805                 const StorageSlot guiStorageSlot(enmStorageBus, iPort, iDevice);
    806                 guiStorageDevice.m_guiStorageSlot = guiStorageSlot;
    807             }
    808 
    809             /* Append or break if necessary: */
    810             if (fSuccess)
    811                 guiStorageDevices << guiStorageDevice;
    812             else
    813                 break;
     803            const StorageSlot guiStorageSlot(enmStorageBus, iPort, iDevice);
     804            guiStorageDevice.m_guiStorageSlot = guiStorageSlot;
     805            guiStorageDevices << guiStorageDevice;
    814806        }
    815807    }
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