From f0576e8a7ef4493bd551e04dbb4c29f88fa7a25b Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 21 Jul 2015 09:18:02 +0200 Subject: Copy constructor for domain-type QByteArrays cannot be copied bytewise --- common/domain/applicationdomaintype.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'common') diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index a673493..a581068 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h @@ -53,6 +53,21 @@ public: { } + ApplicationDomainType(const ApplicationDomainType &other) + { + *this = other; + } + + ApplicationDomainType& operator=(const ApplicationDomainType &other) + { + mAdaptor = other.mAdaptor; + mChangeSet = other.mChangeSet; + mResourceInstanceIdentifier = other.mResourceInstanceIdentifier; + mIdentifier = other.mIdentifier; + mRevision = other.mRevision; + return *this; + } + template static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType &domainType) { -- cgit v1.2.3