Mercurial > hg > octave-lojdl
changeset 8365:65ca196fff28
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 03 Dec 2008 20:57:27 -0500 |
parents | d42a6ae64e92 |
children | 8b1a2555c4e2 |
files | src/ChangeLog src/debug.cc |
diffstat | 2 files changed, 10 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-12-03 John W. Eaton <jwe@octave.org> + + * debug.cc (bp_table::do_get_breakpoint_list): Style fixes. + 2008-11-25 Jaroslav Hajek <highegg@gmail.com> * ov.cc (octave_value::is_equal): New member function.
--- a/src/debug.cc +++ b/src/debug.cc @@ -309,17 +309,15 @@ // problem is due to the fact that out_of_date_check(...) calls // remove_breakpoints_in_file(...), which in turn modifies bp_map while we are // in the middle of iterating through it. + std::list<octave_user_code*> usercode_list; + for (breakpoint_map_iterator it = bp_map.begin (); it != bp_map.end (); it++) - { - octave_user_code *f = it->second; - usercode_list.push_back(f); - } + usercode_list.push_back (it->second); - for (std::list<octave_user_code*>::iterator it = usercode_list.begin (); it != usercode_list.end (); it++) - { - out_of_date_check(*it); - } + for (std::list<octave_user_code*>::iterator it = usercode_list.begin (); + it != usercode_list.end (); it++) + out_of_date_check (*it); // Iterate through each of the files in the map and get the