X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fprogress-bar%2Fprogress-bar.cpp;h=f23897fb1f2d89348b934b31f4785f1d6e90958d;hb=HEAD;hp=d34a5a802b077917ac902d7f2282360e331f58e0;hpb=f6231d5a64d64fde5da27e3c8c691521a087d26e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/progress-bar/progress-bar.cpp b/dali-toolkit/public-api/controls/progress-bar/progress-bar.cpp index d34a5a8..f23897f 100644 --- a/dali-toolkit/public-api/controls/progress-bar/progress-bar.cpp +++ b/dali-toolkit/public-api/controls/progress-bar/progress-bar.cpp @@ -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. @@ -23,35 +23,27 @@ 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); } @@ -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(handle); }