VirtualBox

Changeset 71524 in vbox


Ignore:
Timestamp:
Mar 27, 2018 2:57:29 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9049: Tiny cleanup for UISettingsDefs.

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

Legend:

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

    r66610 r71524  
    55
    66/*
    7  * Copyright (C) 2011-2017 Oracle Corporation
     7 * Copyright (C) 2011-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2929using namespace UISettingsDefs;
    3030
    31 ConfigurationAccessLevel UISettingsDefs::configurationAccessLevel(KSessionState sessionState, KMachineState machineState)
     31ConfigurationAccessLevel UISettingsDefs::configurationAccessLevel(KSessionState enmSessionState, KMachineState enmMachineState)
    3232{
    3333    /* Depending on passed arguments: */
    34     switch (machineState)
     34    switch (enmMachineState)
    3535    {
    3636        case KMachineState_PoweredOff:
    3737        case KMachineState_Teleported:
    38         case KMachineState_Aborted:    return sessionState == KSessionState_Unlocked ?
     38        case KMachineState_Aborted:    return enmSessionState == KSessionState_Unlocked ?
    3939                                              ConfigurationAccessLevel_Full :
    4040                                              ConfigurationAccessLevel_Partial_PoweredOff;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.h

    r66611 r71524  
    55
    66/*
    7  * Copyright (C) 2011-2017 Oracle Corporation
     7 * Copyright (C) 2011-2018 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4646    };
    4747
    48     /** Determines configuration access level for passed @a sessionState and @a machineState. */
    49     ConfigurationAccessLevel configurationAccessLevel(KSessionState sessionState, KMachineState machineState);
     48    /** Determines configuration access level for passed @a enmSessionState and @a enmMachineState. */
     49    ConfigurationAccessLevel configurationAccessLevel(KSessionState enmSessionState,
     50                                                      KMachineState enmMachineState);
    5051}
    5152
     
    122123    int childCount() const { return m_children.size(); }
    123124    /** Returns the modifiable REFERENCE to the child cached data. */
    124     ChildCacheData& child(const QString &strChildKey) { return m_children[strChildKey]; }
     125    ChildCacheData &child(const QString &strChildKey) { return m_children[strChildKey]; }
    125126    /** Wraps method above to return the modifiable REFERENCE to the child cached data. */
    126     ChildCacheData& child(int iIndex) { return child(indexToKey(iIndex)); }
     127    ChildCacheData &child(int iIndex) { return child(indexToKey(iIndex)); }
    127128    /** Returns the NON-modifiable COPY to the child cached data. */
    128129    const ChildCacheData child(const QString &strChildKey) const { return m_children[strChildKey]; }
     
    281282};
    282283
     284
    283285#endif /* !___UISettingsDefs_h___ */
    284286
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