summaryrefslogtreecommitdiff
path: root/src/plugins/cppeditor/cpppreprocessordialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cppeditor/cpppreprocessordialog.cpp')
-rw-r--r--src/plugins/cppeditor/cpppreprocessordialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cpppreprocessordialog.cpp b/src/plugins/cppeditor/cpppreprocessordialog.cpp
index 7501694c1b..0e770405c6 100644
--- a/src/plugins/cppeditor/cpppreprocessordialog.cpp
+++ b/src/plugins/cppeditor/cpppreprocessordialog.cpp
@@ -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);