|
|
| version 1.54.2.5.2.4, 2003/03/27 10:04:07 | version 1.54.2.5.2.5, 2003/03/27 10:53:01 |
|---|---|
| Line 28 void change_string_literal_to_double_lit | Line 28 void change_string_literal_to_double_lit |
| void change_string_literal_value(ArrayOperation& literal_string_array, const String& new_value) { | void change_string_literal_value(ArrayOperation& literal_string_array, const String& new_value) { |
| if(literal_string_array[0].code==OP_VALUE) { // extra safety | if(literal_string_array[0].code==OP_VALUE) { // extra safety |
| static_cast<VString&>(*literal_string_array[1].value).set_string(new_value); | static_cast<VString*>(literal_string_array[1].value)->set_string(new_value); |
| } | } |
| } | } |
| Line 36 void changetail_or_append(ArrayOperation | Line 36 void changetail_or_append(ArrayOperation |
| OPCODE find, bool with_argument, OPCODE replace, OPCODE notfound) { | OPCODE find, bool with_argument, OPCODE replace, OPCODE notfound) { |
| int tail=opcodes.count()-(with_argument?2:1); | int tail=opcodes.count()-(with_argument?2:1); |
| if(tail>=0) { | if(tail>=0) { |
| Operation& op=opcodes[tail]; | Operation& op=opcodes.unchecked_get_ref(tail); |
| if(op.code==find) { | if(op.code==find) { |
| op.code=replace; | op.code=replace; |
| return; | return; |