Ensure BaseHandle class move noexcept (core public-api)
[platform/core/uifw/dali-core.git] / dali / public-api / object / property-notification.cpp
index 7e2c27d..a0b5cab 100644 (file)
 #include <dali/public-api/object/property-notification.h>
 
 // INTERNAL INCLUDES
-#include <dali/public-api/math/quaternion.h>
+#include <dali/internal/event/common/property-notification-impl.h>
 #include <dali/public-api/math/degree.h>
+#include <dali/public-api/math/quaternion.h>
 #include <dali/public-api/math/radian.h>
 #include <dali/public-api/math/vector2.h>
 #include <dali/public-api/object/handle.h>
-#include <dali/internal/event/common/property-notification-impl.h>
 #include <stdio.h>
 
 namespace Dali
 {
-
-PropertyNotification::PropertyNotification()
-{
-}
+PropertyNotification::PropertyNotification() = default;
 
 PropertyNotification::PropertyNotification(Internal::PropertyNotification* propertyNotification)
 : BaseHandle(propertyNotification)
 {
 }
 
-PropertyNotification PropertyNotification::DownCast( BaseHandle handle )
+PropertyNotification PropertyNotification::DownCast(BaseHandle handle)
 {
-  return PropertyNotification( dynamic_cast<Dali::Internal::PropertyNotification*>(handle.GetObjectPtr()) );
+  return PropertyNotification(dynamic_cast<Dali::Internal::PropertyNotification*>(handle.GetObjectPtr()));
 }
 
-PropertyNotification::~PropertyNotification()
-{
-}
+PropertyNotification::~PropertyNotification() = default;
 
 PropertyNotification::PropertyNotification(const PropertyNotification& copy) = default;
 
 PropertyNotification& PropertyNotification::operator=(const PropertyNotification& rhs) = default;
 
-PropertyNotification::PropertyNotification( PropertyNotification&& rhs ) = default;
+PropertyNotification::PropertyNotification(PropertyNotification&& rhs) noexcept = default;
 
-PropertyNotification& PropertyNotification::operator=( PropertyNotification&& rhs ) = default;
+PropertyNotification& PropertyNotification::operator=(PropertyNotification&& rhs) noexcept = default;
 
 PropertyCondition PropertyNotification::GetCondition()
 {
@@ -76,9 +71,9 @@ Property::Index PropertyNotification::GetTargetProperty() const
   return GetImplementation(*this).GetTargetProperty();
 }
 
-void PropertyNotification::SetNotifyMode( NotifyMode mode )
+void PropertyNotification::SetNotifyMode(NotifyMode mode)
 {
-  GetImplementation(*this).SetNotifyMode( mode );
+  GetImplementation(*this).SetNotifyMode(mode);
 }
 
 PropertyNotification::NotifyMode PropertyNotification::GetNotifyMode()