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

@@ -22,6 +22,7 @@
#include "qetgraphicsitem.h"
#include "diagramcontext.h"
#include "assignvariables.h"
#include <algorithm>
class ElementTextItem;
class QETProject;
@@ -248,7 +249,7 @@ inline QUuid Element::uuid() const {
* @return the list of linked elements, the list is sorted by position
*/
inline QList <Element *> Element::linkedElements() {
qSort(connected_elements.begin(), connected_elements.end(), comparPos);
std::sort(connected_elements.begin(), connected_elements.end(), comparPos);
return connected_elements;
}