Replace qSort with std::sort

This commit is contained in:
Nicolas Fella 2018-02-26 20:41:25 +01:00
parent 3a955f0ced
commit b6972e4cb9

View file

@ -233,7 +233,7 @@ void Device::addLink(const NetworkPackage& identityPackage, DeviceLink* link)
connect(link, &DeviceLink::receivedPackage,
this, &Device::privateReceivedPackage);
qSort(m_deviceLinks.begin(), m_deviceLinks.end(), lessThan);
std::sort(m_deviceLinks.begin(), m_deviceLinks.end(), lessThan);
const bool capabilitiesSupported = identityPackage.has(QStringLiteral("incomingCapabilities")) || identityPackage.has(QStringLiteral("outgoingCapabilities"));
if (capabilitiesSupported) {