Commit f717a2fb authored by David Redondo's avatar David Redondo 🏎
Browse files

Port away from obsolete QtAlgorithm functions

parent d6b53fca
......@@ -225,10 +225,10 @@ void RunnerModel::matchesChanged(const QList<Plasma::QueryMatch> &matches)
it.value().append(match);
}
// Sort matches for all runners in descending order. This allows the best
// Sort matches for all runners in descending order, note the reverse iterators. This allows the best
// match to win whilest preserving order between runners.
for (auto &list : matchesForRunner) {
std::sort(list.begin(), list.end(), qGreater<Plasma::QueryMatch>());
std::sort(list.rbegin(), list.rend());
}
if (m_mergeResults) {
......
......@@ -76,7 +76,7 @@ bool HistoryURLItem::operator==( const HistoryItem& rhs) const
if ( const HistoryURLItem* casted_rhs = dynamic_cast<const HistoryURLItem*>( &rhs ) ) {
return casted_rhs->m_urls == m_urls
&& casted_rhs->m_metaData.count() == m_metaData.count()
&& qEqual( casted_rhs->m_metaData.begin(), casted_rhs->m_metaData.end(), m_metaData.begin())
&& std::equal( casted_rhs->m_metaData.begin(), casted_rhs->m_metaData.end(), m_metaData.begin())
&& casted_rhs->m_cut == m_cut;
}
return false;
......
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