Ensure BaseHandle class move noexcept (core public-api)
[platform/core/uifw/dali-core.git] / dali / public-api / object / object-registry.cpp
index aea7a2a..3af5d5b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 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.
 
 namespace Dali
 {
+ObjectRegistry::ObjectRegistry() = default;
 
-ObjectRegistry::ObjectRegistry()
-{
-}
+ObjectRegistry::~ObjectRegistry() = default;
 
-ObjectRegistry::~ObjectRegistry()
-{
-}
+ObjectRegistry::ObjectRegistry(const ObjectRegistry& copy) = default;
 
-ObjectRegistry::ObjectRegistry(const ObjectRegistry& copy)
-: BaseHandle(copy)
-{
-}
+ObjectRegistry& ObjectRegistry::operator=(const ObjectRegistry& rhs) = default;
 
-ObjectRegistry& ObjectRegistry::operator=(const ObjectRegistry& rhs)
-{
-  BaseHandle::operator=(rhs);
-  return *this;
-}
+ObjectRegistry::ObjectRegistry(ObjectRegistry&& rhs) noexcept = default;
+
+ObjectRegistry& ObjectRegistry::operator=(ObjectRegistry&& rhs) noexcept = default;
 
 ObjectRegistry::ObjectCreatedSignalType& ObjectRegistry::ObjectCreatedSignal()
 {