summaryrefslogtreecommitdiff
path: root/src/xmlpatterns/expr/qtemplatemode.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-09-27 14:10:56 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-27 14:31:23 +0200
commit11b150d935ebdd422e3d3edb698f2e08c45e2229 (patch)
tree385a32ceff97112d7e6ec27136ec3fdde0b9594a /src/xmlpatterns/expr/qtemplatemode.cpp
parentbf49d9f0d41c3be802dbdd2c23dfe7c5fd86f4b0 (diff)
downloadqtxmlpatterns-11b150d935ebdd422e3d3edb698f2e08c45e2229.tar.gz
Remove QtAlgorithms usage from QtXmlPatterns.
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I4e2c7bf7970ba59ca9443c545b66db9f509d946b Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/xmlpatterns/expr/qtemplatemode.cpp')
-rw-r--r--src/xmlpatterns/expr/qtemplatemode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xmlpatterns/expr/qtemplatemode.cpp b/src/xmlpatterns/expr/qtemplatemode.cpp
index f2a5b2a..a90efbc 100644
--- a/src/xmlpatterns/expr/qtemplatemode.cpp
+++ b/src/xmlpatterns/expr/qtemplatemode.cpp
@@ -41,6 +41,8 @@
#include "qtemplatemode_p.h"
+#include <algorithm>
+
QT_BEGIN_NAMESPACE
using namespace QPatternist;
@@ -53,7 +55,7 @@ bool TemplateMode::lessThanByPriority(const TemplatePattern::Ptr &t1,
void TemplateMode::finalize()
{
- qSort(templatePatterns.begin(), templatePatterns.end(), lessThanByPriority);
+ std::sort(templatePatterns.begin(), templatePatterns.end(), lessThanByPriority);
/* Now we have a list of patterns sorted by priority. */
}