mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-11 19:59:59 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user