mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Remove usage of deprecated qSort
This commit is contained in:
committed by
Mat Sutcliffe
parent
7bc20d45cf
commit
c82ff139fe
@@ -12,6 +12,8 @@
|
||||
#include "blackmisc/directoryutils.h"
|
||||
#include "blackmisc/verify.h"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Simulation
|
||||
@@ -69,11 +71,11 @@ namespace BlackMisc
|
||||
// to HTML
|
||||
QString html("<table>\n");
|
||||
QStringList airlineIcaos = models.getAirlineVDesignators().toList();
|
||||
qSort(airlineIcaos);
|
||||
airlineIcaos.sort();
|
||||
airlineIcaos.push_front(colorLiveryDesignator);
|
||||
airlineIcaos.push_back(emptyDesignator);
|
||||
QStringList aircraftIcaos = modelsByDesignator.keys();
|
||||
qSort(aircraftIcaos);
|
||||
aircraftIcaos.sort();
|
||||
|
||||
// header
|
||||
html += "<thead><tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user