X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fevent%2Fcommon%2Fproperty-buffer-impl.cpp;h=7fa13f7448ab191ea83395879a50f07a1439bef9;hb=bec8065d4ef872e117e78bdb4eecaec89df4601c;hp=25536cfa83da2e2eb6f09178d22640c43e5c8017;hpb=6ae726637b35a99086d88827c7916a141fe2f85e;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/event/common/property-buffer-impl.cpp b/dali/internal/event/common/property-buffer-impl.cpp index 25536cf..7fa13f7 100644 --- a/dali/internal/event/common/property-buffer-impl.cpp +++ b/dali/internal/event/common/property-buffer-impl.cpp @@ -22,8 +22,8 @@ #include // std::sort // INTERNAL INCLUDES -#include // Dali::Internal::PropertyBuffer #include +#include // Dali::Internal::PropertyBuffer #include // Dali::Internal::ObjectHelper #include // DALI_PROPERTY_TABLE_BEGIN, DALI_PROPERTY, DALI_PROPERTY_TABLE_END @@ -45,8 +45,8 @@ namespace * |name |type |writable|animatable|constraint-input|enum for index-checking| */ DALI_PROPERTY_TABLE_BEGIN -DALI_PROPERTY( "size", UNSIGNED_INTEGER, true, false, true, Dali::PropertyBuffer::Property::SIZE ) -DALI_PROPERTY( "buffer-format", MAP, false, false, false, Dali::PropertyBuffer::Property::BUFFER_FORMAT ) +DALI_PROPERTY( "size", INTEGER, true, false, true, Dali::PropertyBuffer::Property::SIZE ) +DALI_PROPERTY( "buffer-format", MAP, false, false, false, Dali::PropertyBuffer::Property::BUFFER_FORMAT ) DALI_PROPERTY_TABLE_END( DEFAULT_ACTOR_PROPERTY_START_INDEX ) const ObjectImplHelper PROPERTY_BUFFER_IMPL = { DEFAULT_PROPERTY_DETAILS }; @@ -84,7 +84,6 @@ unsigned int GetPropertyImplementationAlignment( Property::Type& propertyType ) switch( propertyType ) { case Property::NONE: - case Property::TYPE_COUNT: case Property::STRING: case Property::ARRAY: case Property::MAP: @@ -102,11 +101,6 @@ unsigned int GetPropertyImplementationAlignment( Property::Type& propertyType ) alignment = PropertyImplementationTypeAlignment< Property::INTEGER >::VALUE; break; } - case Property::UNSIGNED_INTEGER: - { - alignment = PropertyImplementationTypeAlignment< Property::UNSIGNED_INTEGER >::VALUE; - break; - } case Property::FLOAT: { alignment = PropertyImplementationTypeAlignment< Property::FLOAT >::VALUE; @@ -255,7 +249,7 @@ void PropertyBuffer::SetDefaultProperty( Property::Index index, { case Dali::PropertyBuffer::Property::SIZE: { - SetSize( propertyValue.Get() ); + SetSize( propertyValue.Get() ); break; } case Dali::PropertyBuffer::Property::BUFFER_FORMAT: @@ -281,7 +275,7 @@ Property::Value PropertyBuffer::GetDefaultProperty( Property::Index index ) cons { case Dali::PropertyBuffer::Property::SIZE: { - value = static_cast( GetSize() ); // @todo MESH_REWORK Add a size_t type to PropertyValue + value = static_cast( GetSize() ); break; } case Dali::PropertyBuffer::Property::BUFFER_FORMAT: @@ -490,7 +484,6 @@ unsigned int GetPropertyImplementationSize( Property::Type& propertyType ) switch( propertyType ) { case Property::NONE: - case Property::TYPE_COUNT: case Property::STRING: case Property::ARRAY: case Property::MAP: @@ -508,11 +501,6 @@ unsigned int GetPropertyImplementationSize( Property::Type& propertyType ) size = sizeof( PropertyImplementationType< Property::INTEGER >::Type ); break; } - case Property::UNSIGNED_INTEGER: - { - size = sizeof( PropertyImplementationType< Property::UNSIGNED_INTEGER >::Type ); - break; - } case Property::FLOAT: { size = sizeof( PropertyImplementationType< Property::FLOAT >::Type );