forked from qt-creator/qt-creator
Remove use of deprecated Qt algorithms
Change-Id: Ib35cffa2d5762874feea9b1d4df7f569c0e5f496 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
d4b3789db4
commit
670e54345c
@@ -31,6 +31,8 @@
|
||||
|
||||
#include <projectexplorer/session.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using namespace CppEditor::Internal;
|
||||
|
||||
static bool projectPartLessThan(const CppTools::ProjectPart::Ptr &projectPart1,
|
||||
@@ -58,7 +60,7 @@ CppPreProcessorDialog::CppPreProcessorDialog(QWidget *parent, const QString &fil
|
||||
int currentIndex = 0;
|
||||
|
||||
QList<CppTools::ProjectPart::Ptr> sortedProjectParts(projectParts);
|
||||
qStableSort(sortedProjectParts.begin(), sortedProjectParts.end(), projectPartLessThan);
|
||||
std::stable_sort(sortedProjectParts.begin(), sortedProjectParts.end(), projectPartLessThan);
|
||||
|
||||
foreach (CppTools::ProjectPart::Ptr projectPart, sortedProjectParts) {
|
||||
m_ui->projectComboBox->addItem(projectPart->displayName);
|
||||
|
||||
Reference in New Issue
Block a user