mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
replace deprecated qSort() with std::sort()
Signed-off-by: Rolf Eike Beer <eike@sf-mail.de>
This commit is contained in:
parent
d19cfec457
commit
e3d43b5696
6 changed files with 10 additions and 8 deletions
|
@ -77,7 +77,7 @@ QVariant LocationInformationModel::data(const QModelIndex &index, int role) cons
|
|||
void LocationInformationModel::update()
|
||||
{
|
||||
beginResetModel();
|
||||
qSort(dive_site_table.dive_sites, dive_site_table.dive_sites + dive_site_table.nr, dive_site_less_than);
|
||||
std::sort(dive_site_table.dive_sites, dive_site_table.dive_sites + dive_site_table.nr, dive_site_less_than);
|
||||
locationNames.clear();
|
||||
for (int i = 0; i < dive_site_table.nr; i++)
|
||||
locationNames << QString(dive_site_table.dive_sites[i]->name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue