Ensure BaseHandle class move noexcept (core public-api)
[platform/core/uifw/dali-core.git] / dali / public-api / object / type-registry.cpp
index 93e0d0e..2b69d9d 100644 (file)
@@ -35,9 +35,9 @@ TypeRegistry::TypeRegistry(const TypeRegistry& copy) = default;
 
 TypeRegistry& TypeRegistry::operator=(const TypeRegistry& rhs) = default;
 
-TypeRegistry::TypeRegistry(TypeRegistry&& rhs) = default;
+TypeRegistry::TypeRegistry(TypeRegistry&& rhs) noexcept = default;
 
-TypeRegistry& TypeRegistry::operator=(TypeRegistry&& rhs) = default;
+TypeRegistry& TypeRegistry::operator=(TypeRegistry&& rhs) noexcept = default;
 
 TypeRegistry TypeRegistry::Get()
 {
@@ -154,7 +154,7 @@ ChildPropertyRegistration::ChildPropertyRegistration(std::string registered, std
 {
   DALI_ASSERT_ALWAYS((index >= CHILD_PROPERTY_REGISTRATION_START_INDEX) && (index <= CHILD_PROPERTY_REGISTRATION_MAX_INDEX));
 
-  Internal::TypeRegistry::Get()->RegisterChildProperty(std::move(registered), std::move(name), index, type);
+  Internal::TypeRegistry::Get()->RegisterChildProperty(registered, std::move(name), index, type);
 }
 
 } // namespace Dali