Commit 40f6a2d2 authored by Michael Reeves's avatar Michael Reeves

Use std:sort

parent adce42e2
...@@ -2234,9 +2234,9 @@ class MfiLessThan { ...@@ -2234,9 +2234,9 @@ class MfiLessThan {
return bDir1; return bDir1;
} }
}; };
//FIXME:Don't sort twice to get reverse order. Really?!
static void sortHelper( MergeFileInfos* pMFI, int sortColumn, Qt::SortOrder order ) { static void sortHelper( MergeFileInfos* pMFI, int sortColumn, Qt::SortOrder order ) {
qSort( pMFI->m_children.begin(), pMFI->m_children.end(), MfiLessThan( sortColumn ) ); std::sort( pMFI->m_children.begin(), pMFI->m_children.end(), MfiLessThan( sortColumn ) );
if( order == Qt::DescendingOrder ) if( order == Qt::DescendingOrder )
std::reverse( pMFI->m_children.begin(), pMFI->m_children.end() ); std::reverse( pMFI->m_children.begin(), pMFI->m_children.end() );
......
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