[dali_2.3.23] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / progress-bar / progress-bar.cpp
index d34a5a8..f23897f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017 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
 {
-
 namespace Toolkit
 {
-
 ProgressBar::ProgressBar()
 {
 }
 
-ProgressBar::ProgressBar( const ProgressBar& handle )
-: Control( handle )
-{
-}
+ProgressBar::ProgressBar(const ProgressBar& handle) = default;
 
-ProgressBar& ProgressBar::operator=( const ProgressBar& handle )
-{
-  if( &handle != this )
-  {
-    Control::operator=( handle );
-  }
-  return *this;
-}
+ProgressBar::ProgressBar(ProgressBar&& rhs) noexcept = default;
+
+ProgressBar& ProgressBar::operator=(const ProgressBar& handle) = default;
+
+ProgressBar& ProgressBar::operator=(ProgressBar&& rhs) noexcept = default;
 
 ProgressBar::ProgressBar(Internal::ProgressBar& implementation)
 : Control(implementation)
 {
 }
 
-ProgressBar::ProgressBar( Dali::Internal::CustomActor* internal )
-: Control( internal )
+ProgressBar::ProgressBar(Dali::Internal::CustomActor* internal)
+: Control(internal)
 {
   VerifyCustomActorPointer<Internal::ProgressBar>(internal);
 }
@@ -67,10 +59,10 @@ ProgressBar::~ProgressBar()
 
 ProgressBar::ValueChangedSignalType& ProgressBar::ValueChangedSignal()
 {
-  return GetImpl( *this ).ValueChangedSignal();
+  return GetImpl(*this).ValueChangedSignal();
 }
 
-ProgressBar ProgressBar::DownCast( BaseHandle handle )
+ProgressBar ProgressBar::DownCast(BaseHandle handle)
 {
   return Control::DownCast<ProgressBar, Internal::ProgressBar>(handle);
 }