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:
Giuseppe D'Angelo 2012-11-01 15:28:35 +01:00 committed by The Qt Project
parent 38b92f5cba
commit 770532d058

View File

@ -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;