Modified auto_upper implementation for better readability 41/80441/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Mon, 18 Jul 2016 04:42:43 +0000 (13:42 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Mon, 18 Jul 2016 04:42:43 +0000 (13:42 +0900)
Change-Id: I1064aaadf78aa938b4425b1542e59e5bf4e719e9

xmlresource/layout_parser.cpp

index c78afdb..a7903a0 100644 (file)
@@ -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));
                                     }
                                 }
                             }