X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fw-input-keyboard.cpp;h=6c359c9b208a0e16325d3d13c3f5e487c21662b2;hb=3526540a18c70afd9c305425a8f1163f786d2f92;hp=ba9a2178b9405ab0dc5950aee5a36ff33e885911;hpb=cd7a7f9cd81ec863a4141712b3daf2aa09d2cc84;p=platform%2Fcore%2Fuifw%2Finputdelegator.git diff --git a/src/w-input-keyboard.cpp b/src/w-input-keyboard.cpp index ba9a217..6c359c9 100755 --- a/src/w-input-keyboard.cpp +++ b/src/w-input-keyboard.cpp @@ -34,9 +34,9 @@ bool input_keyboard_init(app_control_h app_control) int ret = -1; char *default_text = NULL; char *guide_text = NULL; - char *return_key_type = "SEND"; + char *return_key_type = (char *)"SEND"; char *max_text_length = NULL; - char *cursor_position_set = "0"; + char *cursor_position_set = (char *)"0"; input_keyboard_deinit(); @@ -77,7 +77,7 @@ void input_keyboard_deinit(void) g_input_keyboard_data.default_text = NULL; g_input_keyboard_data.guide_text = NULL; - g_input_keyboard_data.return_key_type = "SEND"; + g_input_keyboard_data.return_key_type = (char *)"SEND"; g_input_keyboard_data.max_text_length = KEYBOARD_EDITOR_CHAR_COUNT_MAX; g_input_keyboard_data.cursor_position_set = 0; @@ -125,7 +125,8 @@ static void maxlength_cb(void *data, Evas_Object *obj, void *event_info) { LOGD("maxlength_cb : size = %d", KEYBOARD_EDITOR_CHAR_COUNT_MAX); char text[512]; - snprintf(text, sizeof(text), _(MAX_TEXT_LENGTH_REACH), g_input_keyboard_data.max_text_length); + const char *guide = _(MAX_TEXT_LENGTH_REACH); + snprintf(text, sizeof(text), guide, g_input_keyboard_data.max_text_length); show_popup_toast((const char *)text, false); }