From c563ee72f25c42a1c6f492c5f2d4e56c2c91df2a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 15 Jul 2015 00:14:45 +0200 Subject: Don't require a smartpointer where not necessary --- common/domain/applicationdomaintype.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/domain') 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: } template - static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType::Ptr &domainType) + static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType &domainType) { //TODO only copy requested properties - auto memoryAdaptor = QSharedPointer::create(*(domainType->mAdaptor)); - return QSharedPointer::create(domainType->mResourceInstanceIdentifier, domainType->mIdentifier, domainType->mRevision, memoryAdaptor); + auto memoryAdaptor = QSharedPointer::create(*(domainType.mAdaptor)); + return QSharedPointer::create(domainType.mResourceInstanceIdentifier, domainType.mIdentifier, domainType.mRevision, memoryAdaptor); } virtual ~ApplicationDomainType() {} -- cgit v1.2.3