mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Merge pull request #766 from stikonas/master
Port away from deprecated qSort.
This commit is contained in:
commit
f50d12445a
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,8 @@
|
|||
|
||||
#include "utils/Logger.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
// KPMcore
|
||||
#include <kpmcore/util/report.h>
|
||||
|
||||
|
@ -74,7 +76,7 @@ ClearTempMountsJob::exec()
|
|||
lineIn = in.readLine();
|
||||
}
|
||||
|
||||
qSort( lst.begin(), lst.end(), []( const QPair< QString, QString >& a,
|
||||
std::sort ( lst.begin(), lst.end(), []( const QPair< QString, QString >& a,
|
||||
const QPair< QString, QString >& b ) -> bool
|
||||
{
|
||||
return a.first > b.first;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue