Verified Commit ff2a8be3 authored by Jonah Brüchert's avatar Jonah Brüchert
Browse files

Port to std::sort


Reviewed-by: Alexander Akulich's avatarAlexander Akulich <akulichalexander@gmail.com>
parent a1519ed8
...@@ -72,7 +72,7 @@ void PendingLoggerDatesImpl::operationFinished(KTp::PendingLoggerOperation *op) ...@@ -72,7 +72,7 @@ void PendingLoggerDatesImpl::operationFinished(KTp::PendingLoggerOperation *op)
if (mRunningOps.isEmpty()) { if (mRunningOps.isEmpty()) {
QList<QDate> allDates = dates(); QList<QDate> allDates = dates();
qSort(allDates); std::sort(allDates.begin(), allDates.end());
setDates(allDates); setDates(allDates);
emitFinished(); emitFinished();
......
...@@ -82,7 +82,7 @@ void MessageProcessor::Private::loadFilter(const KPluginInfo &pluginInfo) ...@@ -82,7 +82,7 @@ void MessageProcessor::Private::loadFilter(const KPluginInfo &pluginInfo)
} }
// Re-sort filters by weight // Re-sort filters by weight
qSort(filters); std::sort(filters.begin(), filters.end());
} }
void MessageProcessor::Private::unloadFilter(const KPluginInfo &pluginInfo) void MessageProcessor::Private::unloadFilter(const KPluginInfo &pluginInfo)
......
...@@ -85,7 +85,7 @@ void MainWindow::onAccountManagerBecameReady(Tp::PendingOperation* op) ...@@ -85,7 +85,7 @@ void MainWindow::onAccountManagerBecameReady(Tp::PendingOperation* op)
void MainWindow::initConnectionManagerTabs(const QSet<QString>& connectionManagerSet) void MainWindow::initConnectionManagerTabs(const QSet<QString>& connectionManagerSet)
{ {
QStringList connectionManagerStringList = connectionManagerSet.toList(); QStringList connectionManagerStringList = connectionManagerSet.toList();
qSort(connectionManagerStringList); std::sort(connectionManagerStringList.begin(), connectionManagerStringList.end());
Q_FOREACH(QString connectionManager, connectionManagerStringList) { Q_FOREACH(QString connectionManager, connectionManagerStringList) {
QWidget *cmTab = new QWidget(); QWidget *cmTab = new QWidget();
......
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