Merge pull request #766 from stikonas/master

Port away from deprecated qSort.
This commit is contained in:
Adriaan de Groot 2017-08-02 04:04:44 -04:00 committed by GitHub
commit f50d12445a

View File

@ -20,6 +20,8 @@
#include "utils/Logger.h" #include "utils/Logger.h"
#include <algorithm>
// KPMcore // KPMcore
#include <kpmcore/util/report.h> #include <kpmcore/util/report.h>
@ -74,7 +76,7 @@ ClearTempMountsJob::exec()
lineIn = in.readLine(); 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 const QPair< QString, QString >& b ) -> bool
{ {
return a.first > b.first; return a.first > b.first;