void NaviFrameItem::NaviBar::on_button_clicked(void *data, Evas_Object *obj, void *event_info)
{
NaviFrameItem::NaviBar *naviBar = static_cast<NaviFrameItem::NaviBar*>(data);
- int type = (int)evas_object_data_get(obj, buttonTypeKey);
+ int type = (int)(intptr_t)evas_object_data_get(obj, buttonTypeKey);
naviBar->getOwner().onButtonClicked(naviBar->getOwner(), (NaviButtonId)type);
}
{
++m_CurrentButtonIndex;
evas_object_show(btn);
- evas_object_data_set(btn, buttonIdKey, (void*)buttonId);
+ evas_object_data_set(btn, buttonIdKey, (void*)(intptr_t)buttonId);
evas_object_data_set(btn, buttonCbKey, (void*)buttonCb);
evas_object_data_set(btn, buttonCbDataKey, userData);
evas_object_smart_callback_add(btn, "clicked", on_button_clicked, this);
{
void *userData = evas_object_data_get(obj, buttonCbDataKey);
Popup *popup = static_cast<Popup*>(data);
- int buttonId = (int)evas_object_data_get(obj, buttonIdKey);
+ int buttonId = (int)(intptr_t)evas_object_data_get(obj, buttonIdKey);
cb(*popup, buttonId, userData);
}
}
auto attachments = getAttachments();
for(BodyAttachmentViewItem *attachment : attachments)
{
- long long size = attachment->getFileSize();
- if(size > 0)
- size += size;
+ long long fileSize = attachment->getFileSize();
+ if(fileSize > 0)
+ size += fileSize;
}
// Pages:
MSG_LOG("");
if(isMms())
{
- int maxSize = m_App.getMsgEngine().getSettings().getMaxMmsSize();
+ long long maxSize = m_App.getMsgEngine().getSettings().getMaxMmsSize();
std::string utfText = markupToUtf8(*text);
- if(getMsgSize() + utfText.size() > maxSize)
+ if(getMsgSize() + static_cast<long long>(utfText.size()) > maxSize)
{
free(*text);
*text = nullptr;
{
if(m_pListener)
{
- int id = (int)evas_object_data_get(obj, buttonIdKey);
+ int id = (int)(intptr_t)evas_object_data_get(obj, buttonIdKey);
m_pListener->onButtonClicked(*this, (ButtonId)id);
}
}