From: Heewon Park Date: Fri, 5 Aug 2016 02:26:38 +0000 (+0900) Subject: Update common data class. X-Git-Tag: 1.2.0+RC1~136^2^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c882261a7ef610584acd5c0d96a2f0e10da4facf;p=platform%2Fupstream%2Fiotivity.git Update common data class. - implement move & copy constructor. Change-Id: I8b27beb016e463db30142b80fe6e06aa282e76f5 Signed-off-by: Heewon Park Reviewed-on: https://gerrit.iotivity.org/gerrit/10067 Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- diff --git a/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h b/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h index 56fc35e..a5af75c 100755 --- a/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h +++ b/service/easy-setup/mediator/richsdk/inc/ESRichCommon.h @@ -55,6 +55,16 @@ namespace OIC */ EnrolleeStatus(const OCRepresentation& rep) { m_rep = rep; } + EnrolleeStatus(const EnrolleeStatus& enrolleeStatus) : + m_rep(enrolleeStatus.getRepresentation()) + { + } + + EnrolleeStatus(const EnrolleeStatus&& enrolleeStatus) : + m_rep(std::move(enrolleeStatus.getRepresentation())) + { + } + /** * Get a provisioning status property of Enrollee. * @@ -86,7 +96,7 @@ namespace OIC * * @return OCRepresentation object */ - const OCRepresentation& getRepresentation() + const OCRepresentation& getRepresentation() const { return m_rep; }