Implemented the Handle assignment operators properly
[platform/core/uifw/dali-core.git] / dali / public-api / render-tasks / render-task-list.cpp
index c898058..4b7175e 100644 (file)
@@ -37,6 +37,24 @@ RenderTaskList::~RenderTaskList()
 {
 }
 
+RenderTaskList::RenderTaskList(const RenderTaskList& handle)
+: BaseHandle(handle)
+{
+}
+
+RenderTaskList& RenderTaskList::operator=(const RenderTaskList& rhs)
+{
+  BaseHandle::operator=(rhs);
+  return *this;
+}
+
+RenderTaskList& RenderTaskList::operator=(BaseHandle::NullType* rhs)
+{
+  DALI_ASSERT_ALWAYS( (rhs == NULL) && "Can only assign NULL pointer to handle");
+  Reset();
+  return *this;
+}
+
 RenderTask RenderTaskList::CreateTask()
 {
   return GetImplementation(*this).CreateTask();