Making DALi public API typesafe using guaranteed types; uint8_t, uint32_t
[platform/core/uifw/dali-core.git] / dali / public-api / animation / constraint.cpp
index 9d80836..4951c7e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2018 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.
@@ -104,12 +104,12 @@ Constraint::RemoveAction Constraint::GetRemoveAction() const
   return GetImplementation(*this).GetRemoveAction();
 }
 
-void Constraint::SetTag( const unsigned int tag )
+void Constraint::SetTag( uint32_t tag )
 {
   GetImplementation(*this).SetTag( tag );
 }
 
-unsigned int Constraint::GetTag() const
+uint32_t Constraint::GetTag() const
 {
   return GetImplementation(*this).GetTag();
 }
@@ -228,7 +228,7 @@ Constraint Constraint::New( Handle handle, Property::Index targetIndex, Property
 
     default:
     {
-      DALI_ASSERT_ALWAYS( false && "Property type enumeration out of bounds" ); // should never come here
+      DALI_ABORT( "Property not constrainable" );
       break;
     }
   }