mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:19:26 +08:00
Style, removed redundant CForm overrides
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <tuple>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <windows.h>
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
namespace BlackMisc
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace BlackMisc
|
||||
CLogHandler();
|
||||
|
||||
//! \private Destructor.
|
||||
~CLogHandler();
|
||||
virtual ~CLogHandler();
|
||||
|
||||
//! Return pointer to the CLogHandler singleton.
|
||||
//! \warning This can not be called from within a plugin, because the returned instance will be wrong.
|
||||
|
||||
@@ -23,6 +23,9 @@ namespace BlackMisc
|
||||
class IProvider
|
||||
{
|
||||
public:
|
||||
//! Dtor
|
||||
virtual ~IProvider() {}
|
||||
|
||||
//! Return as QObject
|
||||
virtual QObject *asQObject() { return nullptr; }
|
||||
};
|
||||
@@ -34,6 +37,9 @@ namespace BlackMisc
|
||||
//! Ctor
|
||||
IProviderAware(PROVIDER *provider = nullptr) { this->setProvider(provider); }
|
||||
|
||||
//! Dtor
|
||||
virtual ~IProviderAware() {}
|
||||
|
||||
//! Has provider?
|
||||
bool hasProvider() const { return m_provider; }
|
||||
|
||||
|
||||
@@ -448,6 +448,9 @@ namespace BlackMisc
|
||||
class BLACKMISC_EXPORT CRemoteAircraftAware : public IProviderAware<IRemoteAircraftProvider>
|
||||
{
|
||||
public:
|
||||
//! Destructor
|
||||
virtual ~CRemoteAircraftAware() {}
|
||||
|
||||
//! \copydoc IRemoteAircraftProvider::getAircraftInRange
|
||||
CSimulatedAircraftList getAircraftInRange() const;
|
||||
|
||||
|
||||
@@ -32,10 +32,8 @@ namespace BlackMisc
|
||||
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
case IndexAllowExclude:
|
||||
return CVariant::fromValue(this->m_allowExcludeModels);
|
||||
default:
|
||||
return CValueObject::propertyByIndex(index);
|
||||
case IndexAllowExclude: return CVariant::fromValue(this->m_allowExcludeModels);
|
||||
default: return CValueObject::propertyByIndex(index);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,12 +43,8 @@ namespace BlackMisc
|
||||
const ColumnIndex i = index.frontCasted<ColumnIndex>();
|
||||
switch (i)
|
||||
{
|
||||
case IndexAllowExclude:
|
||||
this->setAllowExcludedModels(variant.toBool());
|
||||
break;
|
||||
default:
|
||||
CValueObject::setPropertyByIndex(index, variant);
|
||||
break;
|
||||
case IndexAllowExclude: this->setAllowExcludedModels(variant.toBool()); break;
|
||||
default: CValueObject::setPropertyByIndex(index, variant); break;
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <QPointer>
|
||||
|
||||
#ifdef Q_OS_WIN32
|
||||
#include <windows.h>
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
namespace BlackMisc
|
||||
|
||||
Reference in New Issue
Block a user