Implemented the Handle assignment operators properly
[platform/core/uifw/dali-core.git] / dali / public-api / dynamics / dynamics-joint.cpp
index 7514b9a..c286edb 100644 (file)
@@ -36,6 +36,24 @@ DynamicsJoint::~DynamicsJoint()
 {
 }
 
+DynamicsJoint::DynamicsJoint(const DynamicsJoint& handle)
+: BaseHandle(handle)
+{
+}
+
+DynamicsJoint& DynamicsJoint::operator=(const DynamicsJoint& rhs)
+{
+  BaseHandle::operator=(rhs);
+  return *this;
+}
+
+DynamicsJoint& DynamicsJoint::operator=(BaseHandle::NullType* rhs)
+{
+  DALI_ASSERT_ALWAYS( (rhs == NULL) && "Can only assign NULL pointer to handle");
+  Reset();
+  return *this;
+}
+
 void DynamicsJoint::SetLinearLimit( const int axisIndex, const float lowerLimit, const float upperLimit )
 {
 #ifdef DYNAMICS_SUPPORT