X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fcontrol.cpp;h=07170ff59a9262d6ddb5b7a065f538de3648caa3;hp=d9b2f8f1c5bf84f8b194aca58267d23cbe990d96;hb=refs%2Fchanges%2F77%2F239777%2F2;hpb=6450bfaff9367ce929f3c7769be7fcd365be550f diff --git a/dali-toolkit/public-api/controls/control.cpp b/dali-toolkit/public-api/controls/control.cpp index d9b2f8f..07170ff 100644 --- a/dali-toolkit/public-api/controls/control.cpp +++ b/dali-toolkit/public-api/controls/control.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. @@ -40,23 +40,17 @@ Control::Control() { } -Control::Control( const Control& uiControl ) -: CustomActor( uiControl ) -{ -} +Control::Control( const Control& uiControl ) = default; + +Control::Control( Control&& rhs ) = default; Control::~Control() { } -Control& Control::operator=( const Control& handle ) -{ - if( &handle != this ) - { - CustomActor::operator=( handle ); - } - return *this; -} +Control& Control::operator=( const Control& handle ) = default; + +Control& Control::operator=( Control&& rhs ) = default; Control Control::DownCast( BaseHandle handle ) {