Use nested namespaces (C++17 feature)

This commit is contained in:
Mat Sutcliffe
2021-09-15 21:44:54 +01:00
parent 3f2e5b0b69
commit 57d32da826
1345 changed files with 146075 additions and 150376 deletions

View File

@@ -8,29 +8,26 @@
#include "ecosystemlist.h"
namespace BlackMisc
namespace BlackMisc::Network
{
namespace Network
CEcosystemList::CEcosystemList() { }
CEcosystemList::CEcosystemList(const CSequence &other) : CSequence<CEcosystem>(other)
{ }
QStringList CEcosystemList::allSystemStrings() const
{
CEcosystemList::CEcosystemList() { }
CEcosystemList::CEcosystemList(const CSequence &other) : CSequence<CEcosystem>(other)
{ }
QStringList CEcosystemList::allSystemStrings() const
QStringList l;
for (const CEcosystem &e : *this)
{
QStringList l;
for (const CEcosystem &e : *this)
{
l.push_back(e.getSystemString());
}
return l;
l.push_back(e.getSystemString());
}
return l;
}
const CEcosystemList &CEcosystemList::allKnownSystems()
{
static const CEcosystemList s({ CEcosystem::vatsim(), CEcosystem::swift(), CEcosystem::swiftTest(), CEcosystem::privateFsd() });
return s;
}
} // namespace
const CEcosystemList &CEcosystemList::allKnownSystems()
{
static const CEcosystemList s({ CEcosystem::vatsim(), CEcosystem::swift(), CEcosystem::swiftTest(), CEcosystem::privateFsd() });
return s;
}
} // namespace