mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
Use nested namespaces (C++17 feature)
This commit is contained in:
@@ -18,29 +18,26 @@
|
||||
|
||||
#include <QMetaType>
|
||||
|
||||
namespace BlackMisc
|
||||
namespace BlackMisc::Weather
|
||||
{
|
||||
namespace Weather
|
||||
/*!
|
||||
* Value object encapsulating a list of present weathers
|
||||
*/
|
||||
class BLACKMISC_EXPORT CPresentWeatherList :
|
||||
public CSequence<CPresentWeather>,
|
||||
public BlackMisc::Mixin::MetaType<CPresentWeatherList>
|
||||
{
|
||||
/*!
|
||||
* Value object encapsulating a list of present weathers
|
||||
*/
|
||||
class BLACKMISC_EXPORT CPresentWeatherList :
|
||||
public CSequence<CPresentWeather>,
|
||||
public BlackMisc::Mixin::MetaType<CPresentWeatherList>
|
||||
{
|
||||
public:
|
||||
BLACKMISC_DECLARE_USING_MIXIN_METATYPE(CPresentWeatherList)
|
||||
using CSequence::CSequence;
|
||||
public:
|
||||
BLACKMISC_DECLARE_USING_MIXIN_METATYPE(CPresentWeatherList)
|
||||
using CSequence::CSequence;
|
||||
|
||||
//! Default constructor.
|
||||
CPresentWeatherList() = default;
|
||||
//! Default constructor.
|
||||
CPresentWeatherList() = default;
|
||||
|
||||
//! Construct from a base class object.
|
||||
CPresentWeatherList(const CSequence<CPresentWeather> &other);
|
||||
};
|
||||
//! Construct from a base class object.
|
||||
CPresentWeatherList(const CSequence<CPresentWeather> &other);
|
||||
};
|
||||
|
||||
} //namespace
|
||||
} // namespace
|
||||
|
||||
Q_DECLARE_METATYPE(BlackMisc::Weather::CPresentWeatherList)
|
||||
|
||||
Reference in New Issue
Block a user