comparison src/pt-const.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
comparison
equal deleted inserted replaced
8912:57c3155754d6 8913:35cd375d4bb3
70 return retval; 70 return retval;
71 } 71 }
72 72
73 tree_expression * 73 tree_expression *
74 tree_constant::dup (symbol_table::scope_id, 74 tree_constant::dup (symbol_table::scope_id,
75 symbol_table::context_id /*context*/) 75 symbol_table::context_id) const
76 { 76 {
77 tree_constant *new_tc 77 tree_constant *new_tc
78 = new tree_constant (val, orig_text, line (), column ()); 78 = new tree_constant (val, orig_text, line (), column ());
79 79
80 new_tc->copy_base (*this); 80 new_tc->copy_base (*this);