VirtualBox

Changeset 78502 in vbox


Ignore:
Timestamp:
May 14, 2019 11:47:40 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6247: VM Settings / Storage page: A bit of cleanup for r130539.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp

    r78500 r78502  
    422422{
    423423    ControllerTypeList result;
    424     for (uint i = first(); i < first() + size(); ++ i)
     424    for (uint i = firstType(); i < firstType() + typeAmount(); ++i)
    425425        result << (KStorageControllerType) i;
    426426    return result;
     
    442442}
    443443
    444 KStorageControllerType AbstractControllerType::first() const
     444KStorageControllerType AbstractControllerType::firstType() const
    445445{
    446446    switch (mBusType)
     
    457457}
    458458
    459 uint AbstractControllerType::size() const
     459uint AbstractControllerType::typeAmount() const
    460460{
    461461    switch (mBusType)
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h

    r78500 r78502  
    153153    DeviceTypeList deviceTypeList() const;
    154154
    155 protected:
    156 
    157     KStorageControllerType first() const;
    158     uint size() const;
     155private:
     156
     157    KStorageControllerType firstType() const;
     158    uint typeAmount() const;
    159159
    160160    KStorageBus mBusType;
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