mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Use nested namespaces (C++17 feature)
This commit is contained in:
@@ -12,23 +12,20 @@
|
||||
|
||||
using namespace BlackMisc::Aviation;
|
||||
|
||||
namespace BlackMisc
|
||||
namespace BlackMisc::Weather
|
||||
{
|
||||
namespace Weather
|
||||
CCloudLayerList::CCloudLayerList(const CSequence<CCloudLayer> &other) :
|
||||
CSequence<CCloudLayer>(other)
|
||||
{ }
|
||||
|
||||
bool CCloudLayerList::containsBase(const CAltitude &base) const
|
||||
{
|
||||
CCloudLayerList::CCloudLayerList(const CSequence<CCloudLayer> &other) :
|
||||
CSequence<CCloudLayer>(other)
|
||||
{ }
|
||||
return contains(&CCloudLayer::getBase, base);
|
||||
}
|
||||
|
||||
bool CCloudLayerList::containsBase(const CAltitude &base) const
|
||||
{
|
||||
return contains(&CCloudLayer::getBase, base);
|
||||
}
|
||||
CCloudLayer CCloudLayerList::findByBase(const CAltitude &base) const
|
||||
{
|
||||
return findFirstByOrDefault(&CCloudLayer::getBase, base);
|
||||
}
|
||||
|
||||
CCloudLayer CCloudLayerList::findByBase(const CAltitude &base) const
|
||||
{
|
||||
return findFirstByOrDefault(&CCloudLayer::getBase, base);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user