VirtualBox

Changeset 94004 in vbox


Ignore:
Timestamp:
Mar 1, 2022 12:41:47 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: qt6: Compiler insists on braces around foreach() loops preceeded by an if-statement. bugref:9898

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r94001 r94004  
    17881788        bool fIsRecentMediumUsed = false;
    17891789        if (enmMediumType != UIMediumDeviceType_DVD)
     1790        {
    17901791            foreach (const CMediumAttachment &otherAttachment, comAttachments)
    17911792            {
     
    18001801                }
    18011802            }
     1803        }
    18021804        /* If recent-medium usage is unique: */
    18031805        if (!fIsRecentMediumUsed)
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIIconPool.cpp

    r93588 r94004  
    442442    /* 1. First, load icon from IMachine extra-data: */
    443443    if (icon.isNull())
     444    {
    444445        foreach (const QString &strIconName, gEDataManager->machineWindowIconNames(uMachineId))
    445446            if (!strIconName.isEmpty() && QFile::exists(strIconName))
    446447                icon.addFile(strIconName);
     448    }
    447449
    448450    /* 2. Otherwise, load icon from IMachine interface itself: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r93115 r94004  
    17921792    QStringList selectedItemDefinitions;
    17931793    if (fPreserveSelection && !selectedItems().isEmpty())
     1794    {
    17941795        foreach (UIChooserItem *pSelectedItem, selectedItems())
    17951796            selectedItemDefinitions << pSelectedItem->definition();
     1797    }
    17961798
    17971799    /* Clean tree for main root: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSF.cpp

    r93998 r94004  
    338338    /* Load machine (permanent) folders if allowed: */
    339339    if (isSharedFolderTypeSupported(MachineType))
     340    {
    340341        foreach (const CSharedFolder &folder, getSharedFolders(MachineType))
    341342            folders.insertMulti(MachineType, folder);
     343    }
    342344    /* Load console (temporary) folders if allowed: */
    343345    if (isSharedFolderTypeSupported(ConsoleType))
     346    {
    344347        foreach (const CSharedFolder &folder, getSharedFolders(ConsoleType))
    345348            folders.insertMulti(ConsoleType, folder);
     349    }
    346350
    347351    /* For each folder type: */
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