summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2c06250)
changed to static_cast or const_cast
Change-Id: I64ea9cee3b6f0fa2cde3a0445427ac3c10d361cb
#ifdef THORVG_SUPPORT
if(object)
{
#ifdef THORVG_SUPPORT
if(object)
{
- mTvgPaint = static_cast<tvg::Paint*>((void*)object);
+ mTvgPaint = static_cast<tvg::Paint*>(const_cast<void*>(object));
#ifdef THORVG_SUPPORT
if(object)
{
#ifdef THORVG_SUPPORT
if(object)
{
- mTvgFill = static_cast<tvg::Fill*>((void*)object);
+ mTvgFill = static_cast<tvg::Fill*>(const_cast<void*>(object));
- if(static_cast<tvg::Shape*>(mTvgShape)->appendPath(reinterpret_cast<const tvg::PathCommand*>(pathCommand.mCommands), pathCommand.mCommandCount, static_cast<const tvg::Point*>((void*)pathCommand.mPoints), pathCommand.mPointCount) != tvg::Result::Success)
+ if(static_cast<tvg::Shape*>(mTvgShape)->appendPath(reinterpret_cast<const tvg::PathCommand*>(pathCommand.mCommands), pathCommand.mCommandCount, static_cast<const tvg::Point*>(static_cast<void*>(pathCommand.mPoints)), pathCommand.mPointCount) != tvg::Result::Success)
{
DALI_LOG_ERROR("AddPath() fail.\n");
return false;
{
DALI_LOG_ERROR("AddPath() fail.\n");
return false;
#ifdef THORVG_SUPPORT
if(object)
{
#ifdef THORVG_SUPPORT
if(object)
{
- mTvgPaint = static_cast<tvg::Paint*>((void*)object);
+ mTvgPaint = static_cast<tvg::Paint*>(const_cast<void*>(object));
#ifdef THORVG_SUPPORT
if(object)
{
#ifdef THORVG_SUPPORT
if(object)
{
- mTvgFill = static_cast<tvg::Fill*>((void*)object);
+ mTvgFill = static_cast<tvg::Fill*>(const_cast<void*>(object));
- if(static_cast<tvg::Shape*>(mTvgShape)->appendPath(reinterpret_cast<const tvg::PathCommand*>(pathCommand.mCommands), pathCommand.mCommandCount, static_cast<const tvg::Point*>((void*)pathCommand.mPoints), pathCommand.mPointCount) != tvg::Result::Success)
+ if(static_cast<tvg::Shape*>(mTvgShape)->appendPath(reinterpret_cast<const tvg::PathCommand*>(pathCommand.mCommands), pathCommand.mCommandCount, static_cast<const tvg::Point*>(static_cast<void*>(pathCommand.mPoints)), pathCommand.mPointCount) != tvg::Result::Success)
{
DALI_LOG_ERROR("AddPath() fail.\n");
return false;
{
DALI_LOG_ERROR("AddPath() fail.\n");
return false;