Fix weak vtables

This commit is contained in:
Roland Winklmeier
2018-08-24 15:25:47 +02:00
parent 4cf3bc580f
commit 5e38936fd2
30 changed files with 133 additions and 8 deletions

View File

@@ -25,6 +25,8 @@ namespace BlackGui
class BLACKGUI_EXPORT CDbMappingComponentAware
{
public:
//! Set the corresponding component
virtual void setMappingComponent(CDbMappingComponent *component);
@@ -35,6 +37,9 @@ namespace BlackGui
//! Constructor
CDbMappingComponentAware(QObject *parent);
//! Destructor
virtual ~CDbMappingComponentAware() {}
private :
CDbMappingComponent *m_mappingComponent = nullptr; //!< reference to component
};

View File

@@ -63,6 +63,9 @@ namespace BlackGui
//! \remarks Normally the info area will be provided later \sa setParentDockWidgetInfoArea
CEnableForDockWidgetInfoArea(CDockWidgetInfoArea *parentInfoArea = nullptr);
// Destructor
virtual ~CEnableForDockWidgetInfoArea() {}
private:
BlackGui::CDockWidgetInfoArea *m_parentDockableInfoArea = nullptr; //!< my parent dockable widget
BlackMisc::CConnectionGuard m_connections;

View File

@@ -21,6 +21,9 @@ namespace BlackGui
CDropBase::CDropBase()
{ }
CDropBase::~CDropBase()
{ }
void CDropBase::setAcceptedMetaTypeIds(const QList<int> &ids)
{
m_acceptedMetaTypes = ids;

View File

@@ -24,6 +24,9 @@ namespace BlackGui
class BLACKGUI_EXPORT CDropBase
{
public:
//! Dtor
virtual ~CDropBase();
//! Accepted ids
void setAcceptedMetaTypeIds(const QList<int> &ids);
@@ -48,9 +51,6 @@ namespace BlackGui
//! Mime data to CVariant (normally encapsulating a value object)
BlackMisc::CVariant toCVariant(const QMimeData *mime) const;
//! Dtor
virtual ~CDropBase() {}
protected:
//! Ctor
CDropBase();

View File

@@ -34,6 +34,9 @@ namespace BlackGui
{
namespace Menus
{
void IAircraftModelViewMenu::anchor()
{ }
const CLogCategoryList &IAircraftModelViewMenu::getLogCategories()
{
static const CLogCategoryList cats { CLogCategory::guiComponent() };

View File

@@ -28,6 +28,8 @@ namespace BlackGui
//! Menu base class for aircraft model view menus
class IAircraftModelViewMenu : public IMenuDelegate
{
virtual void anchor();
public:
//! Constructor
IAircraftModelViewMenu(BlackGui::Views::CAircraftModelView *modelView, bool separator = true) :