mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Issue #114 Use CSetBuilder and CMapBuilder
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "blackmisc/dbusserver.h"
|
||||
#include "blackmisc/iterator.h"
|
||||
#include "blackmisc/logmessage.h"
|
||||
#include "blackmisc/setbuilder.h"
|
||||
#include "blackconfig/buildconfig.h"
|
||||
|
||||
#include "dbus/dbus.h"
|
||||
@@ -742,14 +743,15 @@ namespace BlackSimPlugin
|
||||
|
||||
// comment KB 2019-06
|
||||
// a package is one xsb_aircraft.txt file BB has 9, X-CSL has 76
|
||||
QSet<QString> superpackages;
|
||||
CSetBuilder<QString> superpackages;
|
||||
for (const Prefix &package : std::as_const(packages))
|
||||
{
|
||||
superpackages.insert(package.parent());
|
||||
}
|
||||
QStringList superpackagesList = superpackages;
|
||||
|
||||
const QDir simDir = getSimulatorSettings().getSimulatorDirectoryOrDefault();
|
||||
for (const QString &package : std::as_const(superpackages))
|
||||
for (const QString &package : superpackagesList)
|
||||
{
|
||||
if (CDirectoryUtils::isSameOrSubDirectoryOf(package, simDir))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user