X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fbuttons%2Fpush-button.cpp;h=0cc3706f9bb2d48ea903cf5373a7026d6b0ea87f;hb=refs%2Fchanges%2F77%2F239777%2F2;hp=6a70aaf1caba49ec5bfd9c4395afda10f9e9a194;hpb=c0d8c3caf853d94266c589b425cadc26333f716a;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/controls/buttons/push-button.cpp b/dali-toolkit/public-api/controls/buttons/push-button.cpp index 6a70aaf..0cc3706 100644 --- a/dali-toolkit/public-api/controls/buttons/push-button.cpp +++ b/dali-toolkit/public-api/controls/buttons/push-button.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019 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. @@ -21,7 +21,6 @@ // EXTERNAL INCLUDES #include -#include // INTERNAL INCLUDES #include @@ -42,19 +41,13 @@ PushButton::PushButton( Internal::PushButton& implementation ) { } -PushButton::PushButton( const PushButton& pushButton ) -: Button( pushButton ) -{ -} +PushButton::PushButton( const PushButton& pushButton ) = default; -PushButton& PushButton::operator=( const PushButton& pushButton ) -{ - if( &pushButton != this ) - { - Button::operator=( pushButton ); - } - return *this; -} +PushButton::PushButton( PushButton&& rhs ) = default; + +PushButton& PushButton::operator=( const PushButton& pushButton ) = default; + +PushButton& PushButton::operator=( PushButton&& rhs ) = default; PushButton::PushButton( Dali::Internal::CustomActor* internal ) : Button( internal )