forked from qt-creator/qt-creator
Reinvent deprecated qSort as Utils::sort
Change-Id: I4f6011cc2b6127037249aabc2426a88ad7108ebf Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
#include <qtsupport/uicodemodelsupport.h>
|
||||
#include <cpptools/cppmodelmanagerinterface.h>
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
#include <utils/algorithm.h>
|
||||
#include <utils/qtcassert.h>
|
||||
#include <utils/stringutils.h>
|
||||
#include <utils/hostosinfo.h>
|
||||
@@ -432,8 +433,8 @@ void CMakeProject::buildTree(CMakeProjectNode *rootNode, QList<ProjectExplorer::
|
||||
// Gather old list
|
||||
QList<ProjectExplorer::FileNode *> oldList;
|
||||
gatherFileNodes(rootNode, oldList);
|
||||
qSort(oldList.begin(), oldList.end(), sortNodesByPath);
|
||||
qSort(newList.begin(), newList.end(), sortNodesByPath);
|
||||
Utils::sort(oldList, sortNodesByPath);
|
||||
Utils::sort(newList, sortNodesByPath);
|
||||
|
||||
QList<ProjectExplorer::FileNode *> added;
|
||||
QList<ProjectExplorer::FileNode *> deleted;
|
||||
|
Reference in New Issue
Block a user