From 900625b649e91a553d5f5bf521b0feb455666b5a Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Mon, 18 Jul 2016 13:42:43 +0900 Subject: [PATCH] Modified auto_upper implementation for better readability Change-Id: I1064aaadf78aa938b4425b1542e59e5bf4e719e9 --- xmlresource/layout_parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmlresource/layout_parser.cpp b/xmlresource/layout_parser.cpp index c78afdb..a7903a0 100644 --- a/xmlresource/layout_parser.cpp +++ b/xmlresource/layout_parser.cpp @@ -971,7 +971,7 @@ LayoutParserImpl::parsing_label_record_node( if (shift_loop != SCL_SHIFT_STATE_OFF) { for (int key_loop = 0; key_loop < xmlStrlen(key); key_loop++) { /* Let's manipulate the string for auto_upper */ - key[key_loop] = toupper(cur_rec->label[SCL_SHIFT_STATE_OFF][label_for_one_state][key_loop]); + *(key + key_loop) = toupper(*(key + key_loop)); } } } @@ -1142,7 +1142,7 @@ LayoutParserImpl::parsing_key_value_record_node( if (shift_loop != SCL_SHIFT_STATE_OFF) { for (int key_loop = 0; key_loop < xmlStrlen(key); key_loop++) { /* Let's manipulate the string for auto_upper */ - key[key_loop] = toupper(cur_rec->key_value[SCL_SHIFT_STATE_OFF][multichar_state][key_loop]); + *(key + key_loop) = toupper(*(key + key_loop)); } } } @@ -1210,7 +1210,7 @@ LayoutParserImpl::parsing_auto_popup_keys_record_node( if (shift_loop != SCL_SHIFT_STATE_OFF) { for (int key_loop = 0; key_loop < xmlStrlen(key); key_loop++) { /* Let's manipulate the string for auto_upper */ - key[key_loop] = toupper(cur_rec->autopopup_key_labels[SCL_SHIFT_STATE_OFF][autopopup_state][key_loop]); + *(key + key_loop) = toupper(*(key + key_loop)); } } } -- 2.7.4