Remove qSort usage from QIODevice
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: If9fbcaf714f10659a3571f9e55ab913a85538038 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
38b92f5cba
commit
770532d058
@ -46,6 +46,8 @@
|
||||
#include "qiodevice_p.h"
|
||||
#include "qfile.h"
|
||||
#include "qstringlist.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits.h>
|
||||
|
||||
#ifdef QIODEVICE_DEBUG
|
||||
@ -1686,7 +1688,7 @@ QDebug operator<<(QDebug debug, QIODevice::OpenMode modes)
|
||||
if (modes & QIODevice::Unbuffered)
|
||||
modeList << QLatin1String("Unbuffered");
|
||||
}
|
||||
qSort(modeList);
|
||||
std::sort(modeList.begin(), modeList.end());
|
||||
debug << modeList.join(QLatin1Char('|'));
|
||||
debug << ')';
|
||||
return debug;
|
||||
|
Loading…
Reference in New Issue
Block a user