diff options
-rw-r--r-- | common/domain/applicationdomaintype.cpp | 30 | ||||
-rw-r--r-- | common/domain/applicationdomaintype.h | 6 |
2 files changed, 4 insertions, 32 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index 57d0f2d..29b50b9 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp | |||
@@ -202,36 +202,6 @@ QByteArray ApplicationDomainType::identifier() const | |||
202 | return mIdentifier; | 202 | return mIdentifier; |
203 | } | 203 | } |
204 | 204 | ||
205 | Entity::~Entity() | ||
206 | { | ||
207 | |||
208 | } | ||
209 | |||
210 | Contact::~Contact() | ||
211 | { | ||
212 | |||
213 | } | ||
214 | |||
215 | Event::~Event() | ||
216 | { | ||
217 | |||
218 | } | ||
219 | |||
220 | Todo::~Todo() | ||
221 | { | ||
222 | |||
223 | } | ||
224 | |||
225 | Mail::~Mail() | ||
226 | { | ||
227 | |||
228 | } | ||
229 | |||
230 | Folder::~Folder() | ||
231 | { | ||
232 | |||
233 | } | ||
234 | |||
235 | SinkResource::SinkResource(const QByteArray &identifier) | 205 | SinkResource::SinkResource(const QByteArray &identifier) |
236 | : ApplicationDomainType("", identifier, 0, QSharedPointer<BufferAdaptor>(new MemoryBufferAdaptor())) | 206 | : ApplicationDomainType("", identifier, 0, QSharedPointer<BufferAdaptor>(new MemoryBufferAdaptor())) |
237 | { | 207 | { |
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index 8ebf6cb..9f2aad7 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -31,7 +31,9 @@ | |||
31 | #define SINK_ENTITY(TYPE) \ | 31 | #define SINK_ENTITY(TYPE) \ |
32 | typedef QSharedPointer<TYPE> Ptr; \ | 32 | typedef QSharedPointer<TYPE> Ptr; \ |
33 | using Entity::Entity; \ | 33 | using Entity::Entity; \ |
34 | virtual ~TYPE(); \ | 34 | TYPE() = default; \ |
35 | TYPE(const ApplicationDomainType &o) : Entity(o) {} \ | ||
36 | virtual ~TYPE() = default; \ | ||
35 | static TYPE create(const QByteArray &resource) { return createEntity<TYPE>(resource); }; \ | 37 | static TYPE create(const QByteArray &resource) { return createEntity<TYPE>(resource); }; \ |
36 | 38 | ||
37 | 39 | ||
@@ -325,7 +327,7 @@ struct SINK_EXPORT Entity : public ApplicationDomainType { | |||
325 | using ApplicationDomainType::ApplicationDomainType; | 327 | using ApplicationDomainType::ApplicationDomainType; |
326 | Entity() = default; | 328 | Entity() = default; |
327 | Entity(const ApplicationDomainType &other) : ApplicationDomainType(other) {} | 329 | Entity(const ApplicationDomainType &other) : ApplicationDomainType(other) {} |
328 | virtual ~Entity(); | 330 | virtual ~Entity() = default; |
329 | }; | 331 | }; |
330 | 332 | ||
331 | struct SINK_EXPORT Contact : public Entity { | 333 | struct SINK_EXPORT Contact : public Entity { |