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
@@ -23,6 +23,7 @@
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "algorithm.h"
|
||||
#include "environment.h"
|
||||
|
||||
#include <QDir>
|
||||
@@ -55,14 +56,9 @@ Q_GLOBAL_STATIC(SystemEnvironment, staticSystemEnvironment)
|
||||
|
||||
namespace Utils {
|
||||
|
||||
static bool sortEnvironmentItem(const EnvironmentItem &a, const EnvironmentItem &b)
|
||||
{
|
||||
return a.name < b.name;
|
||||
}
|
||||
|
||||
void EnvironmentItem::sort(QList<EnvironmentItem> *list)
|
||||
{
|
||||
qSort(list->begin(), list->end(), &sortEnvironmentItem);
|
||||
Utils::sort(*list, &EnvironmentItem::name);
|
||||
}
|
||||
|
||||
QList<EnvironmentItem> EnvironmentItem::fromStringList(const QStringList &list)
|
||||
|
||||
Reference in New Issue
Block a user