Implemented the Handle assignment operators properly
[platform/core/uifw/dali-core.git] / dali / public-api / actors / custom-actor.cpp
index e21c826..f536e7b 100644 (file)
@@ -54,6 +54,24 @@ CustomActor::~CustomActor()
 {
 }
 
+CustomActor::CustomActor(const CustomActor& copy)
+: Actor(copy)
+{
+}
+
+CustomActor& CustomActor::operator=(const CustomActor& rhs)
+{
+  BaseHandle::operator=(rhs);
+  return *this;
+}
+
+CustomActor& CustomActor::operator=(BaseHandle::NullType* rhs)
+{
+  DALI_ASSERT_ALWAYS( (rhs == NULL) && "Can only assign NULL pointer to handle");
+  Reset();
+  return *this;
+}
+
 CustomActorImpl& CustomActor::GetImplementation()
 {
   Internal::CustomActor& internal = GetImpl(*this);