Mercurial > octave-libgccjit
diff src/pt-id.cc @ 8913:35cd375d4bb3
make tree::dup functions const
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Mar 2009 13:50:25 -0500 |
parents | 73c4516fae10 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/src/pt-id.cc Thu Mar 05 09:37:59 2009 +0100 +++ b/src/pt-id.cc Thu Mar 05 13:50:25 2009 -0500 @@ -120,14 +120,14 @@ tree_identifier * tree_identifier::dup (symbol_table::scope_id sc, - symbol_table::context_id /*context*/) + symbol_table::context_id) const { // The new tree_identifier object contains a symbol_record // entry from the duplicated scope. // FIXME -- is this the best way? symbol_table::symbol_record new_sym - = symbol_table::find_symbol (xsym().name (), sc); + = symbol_table::find_symbol (name (), sc); tree_identifier *new_id = new tree_identifier (new_sym, line (), column ());