--- parser3/src/classes/table.C 2016/09/21 21:48:37 1.333
+++ parser3/src/classes/table.C 2016/09/29 18:49:43 1.334
@@ -22,7 +22,7 @@
#define USE_STRINGSTREAM
#endif
-volatile const char * IDENT_TABLE_C="$Id: table.C,v 1.333 2016/09/21 21:48:37 moko Exp $";
+volatile const char * IDENT_TABLE_C="$Id: table.C,v 1.334 2016/09/29 18:49:43 moko Exp $";
// class
@@ -781,7 +781,7 @@ static void _menu(Request& r, MethodPara
for(size_t row=0; row
key_code) {
info->table->set_current(info->row++); // change context row
- StringOrValue sv_processed=info->r->process(*info->key_code);
+ Value& sv_processed=info->r->process(*info->key_code);
key=&sv_processed.as_string();
} else {
key=info->key_fieldcount()?row->get(info->key_field):0;
@@ -884,7 +884,7 @@ static void table_row_to_hash(Table::ele
case C_CODE: {
if(!info->key_code)
info->table->set_current(info->row++); // change context row
- exist=info->hash->put_dont_replace(*key, &info->r->process(*info->value_code).as_value());
+ exist=info->hash->put_dont_replace(*key, &info->r->process(*info->value_code));
break;
}
}
@@ -1174,7 +1174,7 @@ static void _foreach(Request& r, MethodP
if(value_var_name)
r.put_element(*var_context, *value_var_name, new VTable(&table));
- StringOrValue sv_processed=r.process(body_code);
+ Value& sv_processed=r.process(body_code);
Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING);
const String* s_processed=sv_processed.get_string();