#ifdef THORVG_SUPPORT
if(object)
{
- mTvgPaint = static_cast<tvg::Paint*>((void*)object);
+ mTvgPaint = static_cast<tvg::Paint*>(const_cast<void*>(object));
}
#endif
}
#ifdef THORVG_SUPPORT
if(object)
{
- mTvgFill = static_cast<tvg::Fill*>((void*)object);
+ mTvgFill = static_cast<tvg::Fill*>(const_cast<void*>(object));
}
#endif
}
return false;
}
- 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;
#ifdef THORVG_SUPPORT
if(object)
{
- mTvgPaint = static_cast<tvg::Paint*>((void*)object);
+ mTvgPaint = static_cast<tvg::Paint*>(const_cast<void*>(object));
}
#endif
}
#ifdef THORVG_SUPPORT
if(object)
{
- mTvgFill = static_cast<tvg::Fill*>((void*)object);
+ mTvgFill = static_cast<tvg::Fill*>(const_cast<void*>(object));
}
#endif
}
return false;
}
- 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;