X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fobject%2Fobject-registry.cpp;h=3af5d5b392386df869d1104a71c4517646fd1ab7;hb=0b501ba800a263b97d99adf224fc42d0c2aa8b37;hp=4d1f8b20663658aadb8542f6bf6e55eb771544ac;hpb=52d998719683ba91c5f7fbd2c9da544f51317891;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/object/object-registry.cpp b/dali/public-api/object/object-registry.cpp index 4d1f8b2..3af5d5b 100644 --- a/dali/public-api/object/object-registry.cpp +++ b/dali/public-api/object/object-registry.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -23,42 +23,24 @@ namespace Dali { +ObjectRegistry::ObjectRegistry() = default; -const char* const ObjectRegistry::SIGNAL_OBJECT_CREATED = "object-created"; -const char* const ObjectRegistry::SIGNAL_OBJECT_DESTROYED = "object-destroyed"; +ObjectRegistry::~ObjectRegistry() = default; -ObjectRegistry::ObjectRegistry() -{ -} +ObjectRegistry::ObjectRegistry(const ObjectRegistry& copy) = default; -ObjectRegistry::~ObjectRegistry() -{ -} +ObjectRegistry& ObjectRegistry::operator=(const ObjectRegistry& rhs) = default; -ObjectRegistry::ObjectRegistry(const ObjectRegistry& copy) -: BaseHandle(copy) -{ -} +ObjectRegistry::ObjectRegistry(ObjectRegistry&& rhs) noexcept = default; -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& ObjectRegistry::operator=(ObjectRegistry&& rhs) noexcept = default; -ObjectRegistry::ObjectCreatedSignalV2& ObjectRegistry::ObjectCreatedSignal() +ObjectRegistry::ObjectCreatedSignalType& ObjectRegistry::ObjectCreatedSignal() { return GetImplementation(*this).ObjectCreatedSignal(); } -ObjectRegistry::ObjectDestroyedSignalV2& ObjectRegistry::ObjectDestroyedSignal() +ObjectRegistry::ObjectDestroyedSignalType& ObjectRegistry::ObjectDestroyedSignal() { return GetImplementation(*this).ObjectDestroyedSignal(); }