summaryrefslogtreecommitdiff
path: root/tools/xmlpatterns/qapplicationargument_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-02-05 13:06:23 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-02-05 12:28:11 +0000
commit9010c97bfb341166f963090935a0694a7ac5e929 (patch)
treea7b3fa6bc8ccd41dbaf90f5284047790fcd7c4dc /tools/xmlpatterns/qapplicationargument_p.h
parentc054a652f87d00d3f43eb48631025535e3de21ed (diff)
downloadqtxmlpatterns-9010c97bfb341166f963090935a0694a7ac5e929.tar.gz
Fix deprecation warning about Qt algorithms in tool xmlpatternsv5.13.0-alpha1
Use std::sort and implement operator< for class QApplicationArgument, fixing: qapplicationargumentparser.cpp:301:7: warning: ‘template<class T> class qLess’ is deprecated [-Wdeprecated-declarations] from qapplicationargumentparser.cpp:29: qapplicationargumentparser.cpp: In member function ‘void QApplicationArgumentParserPrivate::displayHelp() const’: qapplicationargumentparser.cpp:337:15: warning: ‘void qSort(Container&) [with Container = QList<QApplicationArgument>]’ is deprecated: Use std::sort [-Wdeprecated-declarations] from qapplicationargumentparser.cpp:29: qapplicationargumentparser.cpp:356:19: warning: ‘void qSort(Container&) [with Container = QList<QApplicationArgument>]’ is deprecated: Use std::sort [-Wdeprecated-declarations] from qapplicationargumentparser.cpp:29: Change-Id: I63d8dd5a83f3478b2c70b5b288d9ddb3e5ad5a76 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tools/xmlpatterns/qapplicationargument_p.h')
-rw-r--r--tools/xmlpatterns/qapplicationargument_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/xmlpatterns/qapplicationargument_p.h b/tools/xmlpatterns/qapplicationargument_p.h
index acdd075..aef216b 100644
--- a/tools/xmlpatterns/qapplicationargument_p.h
+++ b/tools/xmlpatterns/qapplicationargument_p.h
@@ -57,6 +57,7 @@ public:
~QApplicationArgument();
QApplicationArgument &operator=(const QApplicationArgument &other);
bool operator==(const QApplicationArgument &other) const;
+ bool operator<(const QApplicationArgument &other) const;
void setName(const QString &newName);
QString name() const;