Remove usage of deprecated qSort

This commit is contained in:
Roland Rossgotterer
2019-02-25 09:57:18 +01:00
committed by Mat Sutcliffe
parent 7bc20d45cf
commit c82ff139fe
3 changed files with 10 additions and 4 deletions

View File

@@ -15,6 +15,8 @@
#include <Qt>
#include <QtGlobal>
#include <algorithm>
using namespace BlackMisc::PhysicalQuantities;
namespace BlackMisc
@@ -162,7 +164,7 @@ namespace BlackMisc
QString rows;
QList<CommandHtmlHelp> cmds(s_commands);
qSort(cmds.begin(), cmds.end(), CommandHtmlHelp::less);
std::sort(cmds.begin(), cmds.end(), CommandHtmlHelp::less);
static const QString cmdCol(QString().fill('-', 20));
static const QString textCol(QString().fill('-', 40));