Port away from deprecated qSort.

This commit is contained in:
Andrius Štikonas 2017-07-17 22:53:09 +01:00
parent 90e83a0fff
commit 1131fdce4c

View File

@ -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;