Mercurial > hg > octave-lyh
changeset 7753:e76a4a6e3c47
initialize args_evaluated; delete useless statement
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 04 May 2008 18:15:07 -0400 |
parents | 40c428ea3408 |
children | e26d0931c044 |
files | src/ChangeLog src/pt-id.cc src/pt-id.h src/symtab.h src/variables.cc |
diffstat | 5 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,12 @@ 2008-05-04 John W. Eaton <jwe@octave.org> + * symtab.h (symbol_table::fcn_info::fcn_info_rep::find_function): + Initialize args_evaluated. + * pt-id.cc (tree_identifier::rvalue): Likewise. + * variables.cc (symbol_exist): Likewise. + + * pt-id.h (tree_identifier::tree_identifer): Delete useless statement. + * variables.cc (get_global_value): Use symbol_table::global_varval instead of passing scope to symbol_table::varval. (set_global_value): Use symbol_table::global_varref
--- a/src/pt-id.cc +++ b/src/pt-id.cc @@ -63,7 +63,7 @@ return retval; octave_value_list evaluated_args; - bool args_evaluated; + bool args_evaluated = false; octave_value val = xsym().find (0, string_vector (), evaluated_args, args_evaluated);
--- a/src/pt-id.h +++ b/src/pt-id.h @@ -52,10 +52,7 @@ tree_identifier (const symbol_table::symbol_record& s, int l = -1, int c = -1, symbol_table::scope_id sc = symbol_table::current_scope ()) - : tree_expression (l, c), sym (s), scope (sc) - { - symbol_table::scope_id curr_scope = symbol_table::current_scope (); - } + : tree_expression (l, c), sym (s), scope (sc) { } ~tree_identifier (void) { }