switch (item_data->mode) {
case SETTING_ITEM_ID_AUTO_CAPITALISE:
ck = _create_check_button(obj, g_config_values.auto_capitalise);
- evas_object_smart_callback_add(ck, "changed", check_autocapitalise_change_callback, (void*)(item_data->mode));
+ evas_object_smart_callback_add(ck, "changed", check_autocapitalise_change_callback,
+ reinterpret_cast<void*>(item_data->mode));
break;
case SETTING_ITEM_ID_AUTO_PUNCTUATE:
ck = _create_check_button(obj, g_config_values.auto_punctuate);
- evas_object_smart_callback_add(ck, "changed", check_autopunctuate_change_callback, (void*)(item_data->mode));
+ evas_object_smart_callback_add(ck, "changed", check_autopunctuate_change_callback,
+ reinterpret_cast<void*>(item_data->mode));
break;
case SETTING_ITEM_ID_SOUND:
ck = _create_check_button(obj, g_config_values.sound_on);
- evas_object_smart_callback_add(ck, "changed", check_sound_change_callback, (void*)(item_data->mode));
+ evas_object_smart_callback_add(ck, "changed", check_sound_change_callback,
+ reinterpret_cast<void*>(item_data->mode));
break;
case SETTING_ITEM_ID_VIBRATION:
ck = _create_check_button(obj, g_config_values.vibration_on);
- evas_object_smart_callback_add(ck, "changed", check_vibration_change_callback, (void*)(item_data->mode));
+ evas_object_smart_callback_add(ck, "changed", check_vibration_change_callback,
+ reinterpret_cast<void*>(item_data->mode));
break;
case SETTING_ITEM_ID_CHARACTER_PRE:
ck = _create_check_button(obj, g_config_values.preview_on);
- evas_object_smart_callback_add(ck, "changed", check_character_pre_change_callback, (void*)(item_data->mode));
+ evas_object_smart_callback_add(ck, "changed", check_character_pre_change_callback,
+ reinterpret_cast<void*>(item_data->mode));
break;
}
option_elements[type].language_item[loop] =
elm_genlist_item_append(genlist, option_elements[type].itc_language_subitems,
&language_itemdata[loop], NULL, ELM_GENLIST_ITEM_NONE,
- _language_gl_sel, (void*)(language_itemdata[loop].mode));
+ _language_gl_sel, reinterpret_cast<void*>(language_itemdata[loop].mode));
language_itemdata[loop].item = option_elements[type].language_item[loop];
} else {
typedef struct makecodeinfo {
+ makecodeinfo() : size(0), cho_idx(0), jung_idx(0), jong_idx(0), next_cho_idx(0)
+ {
+ for (int loop = 0; loop < 2; loop++) {
+ ucode[loop] = 0;
+ }
+ }
int size; // 조합중인 코드의 크기 (자음 + 천(.) 이나 자음 + 천천(..) 은 2, 나머지는 1)
short ucode[2]; // 조합중인 글자의 유니코드 값
short cho_idx;
typedef struct madecodeinfo {
+ madecodeinfo() : size(0)
+ {
+ for (int loop = 0; loop < 2; loop++) {
+ ucode[loop] = 0;
+ }
+ }
int size; // 조합 완료된 코드의 크기 (자음 + 천(.) 이나 자음 + 천천(..) 은 2, 나머지는 1, 조합완료된 코드가 없는 경우 0)
short ucode[2]; // 조합중인 글자의 유니코드 값
} MADECODE;