diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-21 09:18:02 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-07-23 17:37:53 +0200 |
commit | f0576e8a7ef4493bd551e04dbb4c29f88fa7a25b (patch) | |
tree | 77d881a8b161842ba4d963a8a790f279936d5d13 | |
parent | 35b98a61250d70b9495d86a10de575976c8a222f (diff) | |
download | sink-f0576e8a7ef4493bd551e04dbb4c29f88fa7a25b.tar.gz sink-f0576e8a7ef4493bd551e04dbb4c29f88fa7a25b.zip |
Copy constructor for domain-type
QByteArrays cannot be copied bytewise
-rw-r--r-- | common/domain/applicationdomaintype.h | 15 |
1 files changed, 15 insertions, 0 deletions
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: | |||
53 | { | 53 | { |
54 | } | 54 | } |
55 | 55 | ||
56 | ApplicationDomainType(const ApplicationDomainType &other) | ||
57 | { | ||
58 | *this = other; | ||
59 | } | ||
60 | |||
61 | ApplicationDomainType& operator=(const ApplicationDomainType &other) | ||
62 | { | ||
63 | mAdaptor = other.mAdaptor; | ||
64 | mChangeSet = other.mChangeSet; | ||
65 | mResourceInstanceIdentifier = other.mResourceInstanceIdentifier; | ||
66 | mIdentifier = other.mIdentifier; | ||
67 | mRevision = other.mRevision; | ||
68 | return *this; | ||
69 | } | ||
70 | |||
56 | template <typename DomainType> | 71 | template <typename DomainType> |
57 | static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType &domainType) | 72 | static typename DomainType::Ptr getInMemoryRepresentation(const ApplicationDomainType &domainType) |
58 | { | 73 | { |