/*
- * Copyright (c) 2014 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.
} // unnamed namespace
-const Constraint::RemoveAction Constraint::DEFAULT_REMOVE_ACTION = Constraint::Bake;
+const Constraint::RemoveAction Constraint::DEFAULT_REMOVE_ACTION = Constraint::BAKE;
Constraint::Constraint()
{
{
}
-Constraint::Constraint( const Constraint& constraint )
-: BaseHandle( constraint )
-{
-}
+Constraint::Constraint( const Constraint& constraint ) = default;
-Constraint& Constraint::operator=( const Constraint& rhs )
-{
- BaseHandle::operator=( rhs );
- return *this;
-}
+Constraint& Constraint::operator=( const Constraint& rhs ) = default;
+
+Constraint::Constraint( Constraint&& rhs ) = default;
+
+Constraint& Constraint::operator=( Constraint&& rhs ) = default;
Constraint Constraint::DownCast( BaseHandle baseHandle )
{
return GetImplementation(*this).GetRemoveAction();
}
-void Constraint::SetTag( const unsigned int tag )
+void Constraint::SetTag( const uint32_t tag )
{
GetImplementation(*this).SetTag( tag );
}
-unsigned int Constraint::GetTag() const
+uint32_t Constraint::GetTag() const
{
return GetImplementation(*this).GetTag();
}
default:
{
- DALI_ASSERT_ALWAYS( false && "Property type enumeration out of bounds" ); // should never come here
+ DALI_ABORT( "Property not constrainable" );
break;
}
}