diff --git a/src/frontends/qt/GuiBox.cpp b/src/frontends/qt/GuiBox.cpp index 6a991b5df5..67a1b0c52b 100644 --- a/src/frontends/qt/GuiBox.cpp +++ b/src/frontends/qt/GuiBox.cpp @@ -155,7 +155,7 @@ GuiBox::GuiBox(QWidget * parent) : InsetParamsWidget(parent) // the background can be uncolored while the frame cannot color_codes_ = colors(); - qSort(color_codes_.begin(), color_codes_.end(), ColorSorter); + sort(color_codes_.begin(), color_codes_.end(), ColorSorter); fillComboColor(backgroundColorCO, true); fillComboColor(frameColorCO, false); diff --git a/src/frontends/qt/GuiCharacter.cpp b/src/frontends/qt/GuiCharacter.cpp index 59b7ca3f0e..f06119a11c 100644 --- a/src/frontends/qt/GuiCharacter.cpp +++ b/src/frontends/qt/GuiCharacter.cpp @@ -237,7 +237,7 @@ GuiCharacter::GuiCharacter(GuiView & lv) bar = barData(); strike = strikeData(); color = colorData(); - qSort(color.begin(), color.end(), ColorSorter); + sort(color.begin(), color.end(), ColorSorter); language = languageData(); language.prepend(LanguagePair(qt_("Default"), "reset")); diff --git a/src/frontends/qt/GuiExternal.cpp b/src/frontends/qt/GuiExternal.cpp index 7be6be0954..d850c2d8a5 100644 --- a/src/frontends/qt/GuiExternal.cpp +++ b/src/frontends/qt/GuiExternal.cpp @@ -206,7 +206,7 @@ GuiExternal::GuiExternal(GuiView & lv) localizedTemplates.insert(qt_(i1->second.guiName), toqstr(i1->second.lyxName)); // Sort alphabetically by (localized) GUI name QStringList keys = localizedTemplates.keys(); - qSort(keys.begin(), keys.end(), SortLocaleAware); + sort(keys.begin(), keys.end(), SortLocaleAware); for (QString & key : keys) { QString const value = localizedTemplates[key]; externalCO->addItem(key, value); diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp index 7d269bc104..6b00357446 100644 --- a/src/frontends/qt/GuiPrefs.cpp +++ b/src/frontends/qt/GuiPrefs.cpp @@ -1089,7 +1089,7 @@ PrefColors::PrefColors(GuiPreferences * form) continue; lcolors_.push_back(lc); } - qSort(lcolors_.begin(), lcolors_.end(), ColorSorter); + sort(lcolors_.begin(), lcolors_.end(), ColorSorter); vector::const_iterator cit = lcolors_.begin(); vector::const_iterator const end = lcolors_.end(); for (; cit != end; ++cit) { diff --git a/src/frontends/qt/GuiRef.cpp b/src/frontends/qt/GuiRef.cpp index 6f3a34258e..7e98e4864a 100644 --- a/src/frontends/qt/GuiRef.cpp +++ b/src/frontends/qt/GuiRef.cpp @@ -490,8 +490,8 @@ void GuiRef::redoRefs() } } // sort categories case-intensively - qSort(refsCategories.begin(), refsCategories.end(), - caseInsensitiveLessThan /*defined above*/); + sort(refsCategories.begin(), refsCategories.end(), + caseInsensitiveLessThan /*defined above*/); if (noprefix) refsCategories.insert(0, qt_("")); @@ -499,10 +499,10 @@ void GuiRef::redoRefs() sortingCO->itemData(sortingCO->currentIndex()).toString() : QString(); if (sort == "nocase") - qSort(refsStrings.begin(), refsStrings.end(), - caseInsensitiveLessThan /*defined above*/); + std::sort(refsStrings.begin(), refsStrings.end(), + caseInsensitiveLessThan /*defined above*/); else if (sort == "case") - qSort(refsStrings.begin(), refsStrings.end()); + std::sort(refsStrings.begin(), refsStrings.end()); if (groupCB->isChecked()) { QList refsCats;