mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 22:29:13 +08:00
Use C++17 nested namespaces
This commit is contained in:
@@ -23,11 +23,8 @@
|
|||||||
class QStringList;
|
class QStringList;
|
||||||
|
|
||||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Aviation, CSelcal)
|
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Aviation, CSelcal)
|
||||||
|
namespace BlackMisc::PhysicalQuantities { class CFrequency; }
|
||||||
namespace BlackMisc
|
namespace BlackMisc::Aviation
|
||||||
{
|
|
||||||
namespace PhysicalQuantities { class CFrequency; }
|
|
||||||
namespace Aviation
|
|
||||||
{
|
{
|
||||||
/*!
|
/*!
|
||||||
* Value object for SELCAL.
|
* Value object for SELCAL.
|
||||||
@@ -92,7 +89,6 @@ namespace BlackMisc
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
} // namespace
|
|
||||||
|
|
||||||
Q_DECLARE_METATYPE(BlackMisc::Aviation::CSelcal)
|
Q_DECLARE_METATYPE(BlackMisc::Aviation::CSelcal)
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#include "blackmisc/db/registermetadatadb.h"
|
#include "blackmisc/db/registermetadatadb.h"
|
||||||
#include "blackmisc/variant.h"
|
#include "blackmisc/variant.h"
|
||||||
|
|
||||||
namespace BlackMisc
|
|
||||||
// DB headers
|
// DB headers
|
||||||
#include "blackmisc/db/dbinfolist.h"
|
#include "blackmisc/db/dbinfolist.h"
|
||||||
#include "blackmisc/db/dbinfo.h"
|
#include "blackmisc/db/dbinfo.h"
|
||||||
@@ -20,8 +19,7 @@ namespace BlackMisc
|
|||||||
#include "blackmisc/db/artifactlist.h"
|
#include "blackmisc/db/artifactlist.h"
|
||||||
#include "blackmisc/db/updateinfo.h"
|
#include "blackmisc/db/updateinfo.h"
|
||||||
|
|
||||||
{
|
namespace BlackMisc::Db
|
||||||
namespace Db
|
|
||||||
{
|
{
|
||||||
void registerMetadata()
|
void registerMetadata()
|
||||||
{
|
{
|
||||||
@@ -34,6 +32,5 @@ namespace BlackMisc
|
|||||||
CDistributionList::registerMetadata();
|
CDistributionList::registerMetadata();
|
||||||
CUpdateInfo::registerMetadata();
|
CUpdateInfo::registerMetadata();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
#include "blackmisc/geo/registermetadatageo.h"
|
#include "blackmisc/geo/registermetadatageo.h"
|
||||||
|
|
||||||
namespace BlackMisc
|
|
||||||
// Geo headers
|
// Geo headers
|
||||||
#include "blackmisc/geo/latitude.h"
|
#include "blackmisc/geo/latitude.h"
|
||||||
#include "blackmisc/geo/longitude.h"
|
#include "blackmisc/geo/longitude.h"
|
||||||
@@ -16,8 +15,7 @@ namespace BlackMisc
|
|||||||
#include "blackmisc/geo/coordinategeodeticlist.h"
|
#include "blackmisc/geo/coordinategeodeticlist.h"
|
||||||
#include "blackmisc/geo/elevationplane.h"
|
#include "blackmisc/geo/elevationplane.h"
|
||||||
|
|
||||||
{
|
namespace BlackMisc::Geo
|
||||||
namespace Geo
|
|
||||||
{
|
{
|
||||||
void registerMetadata()
|
void registerMetadata()
|
||||||
{
|
{
|
||||||
@@ -27,6 +25,5 @@ namespace BlackMisc
|
|||||||
CLongitude::registerMetadata();
|
CLongitude::registerMetadata();
|
||||||
CElevationPlane::registerMetadata();
|
CElevationPlane::registerMetadata();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -16,9 +16,7 @@
|
|||||||
|
|
||||||
#include <QDBusMetaType>
|
#include <QDBusMetaType>
|
||||||
|
|
||||||
namespace BlackMisc
|
namespace BlackMisc::Input
|
||||||
{
|
|
||||||
namespace Input
|
|
||||||
{
|
{
|
||||||
void registerMetadata()
|
void registerMetadata()
|
||||||
{
|
{
|
||||||
@@ -32,6 +30,5 @@ namespace BlackMisc
|
|||||||
qDBusRegisterMetaType<KeyCode>();
|
qDBusRegisterMetaType<KeyCode>();
|
||||||
qRegisterMetaTypeStreamOperators<KeyCode>();
|
qRegisterMetaTypeStreamOperators<KeyCode>();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -40,9 +40,7 @@ using namespace BlackMisc::Simulation::Fsx;
|
|||||||
using namespace BlackMisc::Simulation::FsCommon;
|
using namespace BlackMisc::Simulation::FsCommon;
|
||||||
using namespace BlackMisc::Simulation::Settings;
|
using namespace BlackMisc::Simulation::Settings;
|
||||||
|
|
||||||
namespace BlackMisc
|
namespace BlackMisc::Simulation
|
||||||
{
|
|
||||||
namespace Simulation
|
|
||||||
{
|
{
|
||||||
void registerMetadata()
|
void registerMetadata()
|
||||||
{
|
{
|
||||||
@@ -108,6 +106,5 @@ namespace BlackMisc
|
|||||||
qRegisterMetaTypeStreamOperators<ReverseLookupLoggingFlag>();
|
qRegisterMetaTypeStreamOperators<ReverseLookupLoggingFlag>();
|
||||||
qRegisterMetaTypeStreamOperators<ReverseLookupLogging>();
|
qRegisterMetaTypeStreamOperators<ReverseLookupLogging>();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include "blackmisc/valueobject.h"
|
#include "blackmisc/valueobject.h"
|
||||||
#include "blackmisc/variant.h"
|
#include "blackmisc/variant.h"
|
||||||
|
|
||||||
namespace BlackMisc
|
|
||||||
// Weather headers
|
// Weather headers
|
||||||
#include "blackmisc/weather/cloudlayer.h"
|
#include "blackmisc/weather/cloudlayer.h"
|
||||||
#include "blackmisc/weather/cloudlayerlist.h"
|
#include "blackmisc/weather/cloudlayerlist.h"
|
||||||
@@ -30,8 +29,7 @@ namespace BlackMisc
|
|||||||
#include "blackmisc/weather/windlayer.h"
|
#include "blackmisc/weather/windlayer.h"
|
||||||
#include "blackmisc/weather/windlayerlist.h"
|
#include "blackmisc/weather/windlayerlist.h"
|
||||||
|
|
||||||
{
|
namespace BlackMisc::Weather
|
||||||
namespace Weather
|
|
||||||
{
|
{
|
||||||
void registerMetadata()
|
void registerMetadata()
|
||||||
{
|
{
|
||||||
@@ -53,6 +51,5 @@ namespace BlackMisc
|
|||||||
CWindLayer::registerMetadata();
|
CWindLayer::registerMetadata();
|
||||||
CWindLayerList::registerMetadata();
|
CWindLayerList::registerMetadata();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
Reference in New Issue
Block a user