diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-15 00:14:45 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-15 00:14:45 +0200 |
commit | c563ee72f25c42a1c6f492c5f2d4e56c2c91df2a (patch) | |
tree | 223e06f85324baec70a8a1a5d27e766e6f9523af /common/domain | |
parent | 64f4244f5b5a2e830a240b6962c6708bd12a6d35 (diff) | |
download | sink-c563ee72f25c42a1c6f492c5f2d4e56c2c91df2a.tar.gz sink-c563ee72f25c42a1c6f492c5f2d4e56c2c91df2a.zip |
Don't require a smartpointer where not necessary
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() {} |