From cf8c6dfe32580d2d93cb67f496f50fa14c572f5c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 31 Jan 2016 11:21:48 +0100 Subject: Enabled and fixed a bunch of warnings --- common/domain/applicationdomaintype.cpp | 30 ++++++++++++++++++++++++++++++ common/domain/applicationdomaintype.h | 7 +++++++ 2 files changed, 37 insertions(+) (limited to 'common/domain') diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index b0433be..fccf082 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp @@ -100,6 +100,36 @@ QByteArray ApplicationDomainType::identifier() const return mIdentifier; } +Entity::~Entity() +{ + +} + +Event::~Event() +{ + +} + +Todo::~Todo() +{ + +} + +Mail::~Mail() +{ + +} + +Folder::~Folder() +{ + +} + +SinkResource::~SinkResource() +{ + +} + template<> QByteArray getTypeName() { diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 63f030c..88f094a 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h @@ -85,31 +85,37 @@ inline bool operator==(const ApplicationDomainType& lhs, const ApplicationDomain struct Entity : public ApplicationDomainType { typedef QSharedPointer Ptr; using ApplicationDomainType::ApplicationDomainType; + virtual ~Entity(); }; struct Event : public Entity { typedef QSharedPointer Ptr; using Entity::Entity; + virtual ~Event(); }; struct Todo : public Entity { typedef QSharedPointer Ptr; using Entity::Entity; + virtual ~Todo(); }; struct Calendar : public Entity { typedef QSharedPointer Ptr; using Entity::Entity; + virtual ~Calendar(); }; struct Mail : public Entity { typedef QSharedPointer Ptr; using Entity::Entity; + virtual ~Mail(); }; struct Folder : public Entity { typedef QSharedPointer Ptr; using Entity::Entity; + virtual ~Folder(); }; /** @@ -121,6 +127,7 @@ struct Folder : public Entity { struct SinkResource : public ApplicationDomainType { typedef QSharedPointer Ptr; using ApplicationDomainType::ApplicationDomainType; + virtual ~SinkResource(); }; /** -- cgit v1.2.3