VirtualBox

Changeset 88441 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 9, 2021 4:35:08 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9532: Fixing deprecated stuff: Replacing Qt algorithms with std stuff.

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

Legend:

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

    r87756 r88441  
    37793779    }
    37803780    /* Now sort the vector: */
    3781     qSort(screenSize.begin(), screenSize.end(), qGreater<int>());
     3781    std::sort(screenSize.begin(), screenSize.end(), std::greater<int>());
    37823782    /* For the case that there are more guest screens configured then host
    37833783     * screens available, replace all zeros with the greatest value in the
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIShortcutConfigurationEditor.cpp

    r86124 r88441  
    635635{
    636636    /* Sort whole the list: */
    637     qStableSort(m_shortcuts.begin(), m_shortcuts.end(), UIShortcutItemSortingFunctor(iColumn, order));
     637    std::stable_sort(m_shortcuts.begin(), m_shortcuts.end(), UIShortcutItemSortingFunctor(iColumn, order));
    638638    /* Make sure host-combo item is always the first one: */
    639639    UIShortcutConfigurationItem fakeHostComboItem(UIHostCombo::hostComboCacheKey(), QString(), QString(), QString(), QString());
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