macOS: Replace deprecated use of qSort with std::sort
Change-Id: Ic93f4ccb3ec2f09a4198ae9892923aae4ee00dc9 Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
This commit is contained in:
parent
6a02958f21
commit
14218b880a
@ -247,7 +247,7 @@ void QMacPrintEnginePrivate::initialize()
|
||||
|
||||
QList<int> resolutions = m_printDevice->supportedResolutions();
|
||||
if (!resolutions.isEmpty() && mode != QPrinter::ScreenResolution) {
|
||||
qSort(resolutions);
|
||||
std::sort(resolutions.begin(), resolutions.end());
|
||||
if (resolutions.count() > 1 && mode == QPrinter::HighResolution)
|
||||
resolution.hRes = resolution.vRes = resolutions.last();
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user