Style, removed redundant CForm overrides

This commit is contained in:
Klaus Basan
2018-08-04 23:39:32 +02:00
parent b4f39f6226
commit b671c2a0a5
19 changed files with 29 additions and 37 deletions

View File

@@ -25,7 +25,7 @@
#include <tuple>
#ifdef Q_OS_WIN
#include <windows.h>
#include <Windows.h>
#endif
namespace BlackMisc

View File

@@ -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.

View File

@@ -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; }

View File

@@ -448,6 +448,9 @@ namespace BlackMisc
class BLACKMISC_EXPORT CRemoteAircraftAware : public IProviderAware<IRemoteAircraftProvider>
{
public:
//! Destructor
virtual ~CRemoteAircraftAware() {}
//! \copydoc IRemoteAircraftProvider::getAircraftInRange
CSimulatedAircraftList getAircraftInRange() const;

View File

@@ -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

View File

@@ -15,7 +15,7 @@
#include <QPointer>
#ifdef Q_OS_WIN32
#include <windows.h>
#include <Windows.h>
#endif
namespace BlackMisc