- implement move & copy constructor.
Change-Id: I8b27beb016e463db30142b80fe6e06aa282e76f5
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10067
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
*/
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.
*
*
* @return OCRepresentation object
*/
- const OCRepresentation& getRepresentation()
+ const OCRepresentation& getRepresentation() const
{
return m_rep;
}