Replace qSort with std::sort

master
Simon Stürz 2021-07-15 19:49:48 +02:00
parent e6ae1d76eb
commit b3dde018ec
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ void SunSpecConnection::processDiscoveryResult()
if (m_uninitializedModels.isEmpty()) {
// Sort the models according to their modbus start address to get the common model for each model
qSort(m_models.begin(), m_models.end(), [](const SunSpecModel* a, const SunSpecModel* b) -> bool {
std::sort(m_models.begin(), m_models.end(), [](const SunSpecModel* a, const SunSpecModel* b) -> bool {
return a->modbusStartRegister() < b->modbusStartRegister();
});