Replace QSort function has been deprecated

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4898 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2017-02-03 13:48:42 +00:00
parent 902037d278
commit aded80e4ae
6 changed files with 14 additions and 5 deletions

View File

@@ -18,6 +18,7 @@
#include "diagramcontext.h"
#include <QRegExp>
#include "qet.h"
#include <algorithm>
/**
@return a list containing all the keys in the context object.
@@ -30,7 +31,7 @@ QList<QString> DiagramContext::keys(DiagramContext::KeyOrder order) const {
if (order == Alphabetical) {
qSort(keys_list);
} else {
qSort(keys_list.begin(), keys_list.end(), DiagramContext::stringLongerThan);
std::sort(keys_list.begin(), keys_list.end(), DiagramContext::stringLongerThan);
}
return(keys_list);
}