Remove qSort usage from QSettings
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I5aabfd2dd4fa48a4d94407ca444591e9df7b981d Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
parent
f30f58edc3
commit
0ec406695e
@ -72,6 +72,7 @@
|
||||
# include <ioLib.h>
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef Q_OS_WIN // for homedirpath reading from registry
|
||||
@ -1905,7 +1906,7 @@ bool QConfFileSettingsPrivate::writeIniFile(QIODevice &device, const ParsedSetti
|
||||
sections.reserve(sectionCount);
|
||||
for (i = iniMap.constBegin(); i != iniMap.constEnd(); ++i)
|
||||
sections.append(QSettingsIniKey(i.key(), i.value().position));
|
||||
qSort(sections);
|
||||
std::sort(sections.begin(), sections.end());
|
||||
|
||||
bool writeError = false;
|
||||
for (int j = 0; !writeError && j < sectionCount; ++j) {
|
||||
|
Loading…
Reference in New Issue
Block a user