comparison src/pt-colon.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
264 : -1))); 264 : -1)));
265 } 265 }
266 266
267 tree_expression * 267 tree_expression *
268 tree_colon_expression::dup (symbol_table::scope_id scope, 268 tree_colon_expression::dup (symbol_table::scope_id scope,
269 symbol_table::context_id context) 269 symbol_table::context_id context) const
270 { 270 {
271 tree_colon_expression *new_ce = new 271 tree_colon_expression *new_ce = new
272 tree_colon_expression (op_base ? op_base->dup (scope, context) : 0, 272 tree_colon_expression (op_base ? op_base->dup (scope, context) : 0,
273 op_limit ? op_limit->dup (scope, context) : 0, 273 op_limit ? op_limit->dup (scope, context) : 0,
274 op_increment ? op_increment->dup (scope, context) : 0, 274 op_increment ? op_increment->dup (scope, context) : 0,