diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index f2a4ad6..a673493 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -54,11 +54,11 @@ public: | |||
54 | } | 54 | } |
55 | 55 | ||
56 | template <typename DomainType> | 56 | template <typename DomainType> |
57 | static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType::Ptr &domainType) | 57 | static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType &domainType) |
58 | { | 58 | { |
59 | //TODO only copy requested properties | 59 | //TODO only copy requested properties |
60 | auto memoryAdaptor = QSharedPointer<Akonadi2::ApplicationDomain::MemoryBufferAdaptor>::create(*(domainType->mAdaptor)); | 60 | auto memoryAdaptor = QSharedPointer<Akonadi2::ApplicationDomain::MemoryBufferAdaptor>::create(*(domainType.mAdaptor)); |
61 | return QSharedPointer<DomainType>::create(domainType->mResourceInstanceIdentifier, domainType->mIdentifier, domainType->mRevision, memoryAdaptor); | 61 | return QSharedPointer<DomainType>::create(domainType.mResourceInstanceIdentifier, domainType.mIdentifier, domainType.mRevision, memoryAdaptor); |
62 | } | 62 | } |
63 | 63 | ||
64 | virtual ~ApplicationDomainType() {} | 64 | virtual ~ApplicationDomainType() {} |