Commit ce2a7973 authored by Laurent Montel's avatar Laurent Montel 😁

port to std::sort

parent 2970915c
......@@ -62,7 +62,7 @@ void ResolutionSlider::init()
mModes << mode->size();
}
qSort(mModes.begin(), mModes.end(), sizeLessThan);
std::sort(mModes.begin(), mModes.end(), sizeLessThan);
delete layout();
delete mSmallestLabel;
......
......@@ -147,7 +147,7 @@ KScreen::OutputPtr UnifiedOutputConfig::createFakeOutput()
}
commonResults << smallestMode;
}
qSort(commonResults);
std::sort(commonResults.begin(), commonResults.end());
KScreen::ModeList modes;
Q_FOREACH (const QSize &size, commonResults) {
......
......@@ -336,7 +336,7 @@ void Generator::cloneScreens(KScreen::OutputList &connectedOutputs)
//At this point, we know we have common sizes, let's get the biggest on
QList<QSize> commonSizeList = commonSizes.toList();
qSort(commonSizeList.begin(), commonSizeList.end());
std::sort(commonSizeList.begin(), commonSizeList.end());
const QSize biggestSize = commonSizeList.last();
//Finally, look for the mode with biggestSize and biggest refreshRate and set it
......@@ -392,7 +392,7 @@ void Generator::laptop(KScreen::OutputList &connectedOutputs)
*/
if (!embedded) {
QList<int> keys = connectedOutputs.keys();
qSort(keys);
std::sort(keys.begin(), keys.end());
embedded = connectedOutputs.value(keys.first());
}
connectedOutputs.remove(embedded->id());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment