Implemented the Handle assignment operators properly
[platform/core/uifw/dali-core.git] / dali / public-api / object / object-registry.cpp
index 9ad8a2e..4d1f8b2 100644 (file)
@@ -35,6 +35,24 @@ ObjectRegistry::~ObjectRegistry()
 {
 }
 
+ObjectRegistry::ObjectRegistry(const ObjectRegistry& copy)
+: BaseHandle(copy)
+{
+}
+
+ObjectRegistry& ObjectRegistry::operator=(const ObjectRegistry& rhs)
+{
+  BaseHandle::operator=(rhs);
+  return *this;
+}
+
+ObjectRegistry& ObjectRegistry::operator=(BaseHandle::NullType* rhs)
+{
+  DALI_ASSERT_ALWAYS( (rhs == NULL) && "Can only assign NULL pointer to handle");
+  Reset();
+  return *this;
+}
+
 ObjectRegistry::ObjectCreatedSignalV2& ObjectRegistry::ObjectCreatedSignal()
 {
   return GetImplementation(*this).ObjectCreatedSignal();