From aa3f358d433ec7fbe0237141c22297f3d8d4120d Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Tue, 3 Sep 2013 00:04:10 +0200 Subject: Remove deprecated QtAlgorithms calls from QtGui QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I324ddf6129fe8884ecea97ef47abb7c071dfb34c Reviewed-by: Gunnar Sletta --- src/gui/text/qtextdocumentwriter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/text/qtextdocumentwriter.cpp') diff --git a/src/gui/text/qtextdocumentwriter.cpp b/src/gui/text/qtextdocumentwriter.cpp index b4a4a07c42..a294bceacc 100644 --- a/src/gui/text/qtextdocumentwriter.cpp +++ b/src/gui/text/qtextdocumentwriter.cpp @@ -52,6 +52,8 @@ #include "qtextdocumentfragment_p.h" #include "qtextodfwriter_p.h" +#include + QT_BEGIN_NAMESPACE class QTextDocumentWriterPrivate @@ -366,7 +368,7 @@ QList QTextDocumentWriter::supportedDocumentFormats() answer << "ODF"; #endif // QT_NO_TEXTODFWRITER - qSort(answer); + std::sort(answer.begin(), answer.end()); return answer; } -- cgit v1.2.3