comparison src/pt-except.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
51 delete trail_comm; 51 delete trail_comm;
52 } 52 }
53 53
54 tree_command * 54 tree_command *
55 tree_try_catch_command::dup (symbol_table::scope_id scope, 55 tree_try_catch_command::dup (symbol_table::scope_id scope,
56 symbol_table::context_id context) 56 symbol_table::context_id context) const
57 { 57 {
58 return new 58 return new
59 tree_try_catch_command (try_code ? try_code->dup (scope, context) : 0, 59 tree_try_catch_command (try_code ? try_code->dup (scope, context) : 0,
60 catch_code ? catch_code->dup (scope, context) : 0, 60 catch_code ? catch_code->dup (scope, context) : 0,
61 lead_comm ? lead_comm->dup () : 0, 61 lead_comm ? lead_comm->dup () : 0,
81 delete trail_comm; 81 delete trail_comm;
82 } 82 }
83 83
84 tree_command * 84 tree_command *
85 tree_unwind_protect_command::dup (symbol_table::scope_id scope, 85 tree_unwind_protect_command::dup (symbol_table::scope_id scope,
86 symbol_table::context_id context) 86 symbol_table::context_id context) const
87 { 87 {
88 return new tree_unwind_protect_command 88 return new tree_unwind_protect_command
89 (unwind_protect_code ? unwind_protect_code->dup (scope, context) : 0, 89 (unwind_protect_code ? unwind_protect_code->dup (scope, context) : 0,
90 cleanup_code ? cleanup_code->dup (scope, context) : 0, 90 cleanup_code ? cleanup_code->dup (scope, context) : 0,
91 lead_comm ? lead_comm->dup () : 0, 91 lead_comm ? lead_comm->dup () : 0,