summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qiodevice.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2012-11-01 15:28:35 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-04 18:52:29 +0200
commit770532d058b9667025c70abe0208589facd8d548 (patch)
tree38bcaeff62b73f4f4a6307244f6c71caf70d933a /src/corelib/io/qiodevice.cpp
parent38b92f5cbab2f24df26f91ee27afeec1103cd085 (diff)
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>
Diffstat (limited to 'src/corelib/io/qiodevice.cpp')
-rw-r--r--src/corelib/io/qiodevice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp
index c8a3f86137..1b06f3ec86 100644
--- a/src/corelib/io/qiodevice.cpp
+++ b/src/corelib/io/qiodevice.cpp
@@ -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;