Mercurial > jwe > octave
changeset 24443:92f0d6013ddd
avoid shadowed variable warning from GCC
* graphics.cc (gh_manager::do_execute_callback):
Eliminate duplicate variable.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 21 Dec 2017 12:14:10 -0500 |
parents | 98a03a1097b4 |
children | 53ca76c5cc8d |
files | libinterp/corefcn/graphics.cc |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc Thu Dec 21 12:13:04 2017 -0500 +++ b/libinterp/corefcn/graphics.cc Thu Dec 21 12:14:10 2017 -0500 @@ -10316,12 +10316,10 @@ // Redraw after interacting with a user-interface (ui*) object. if (Vdrawnow_requested) { - graphics_object go = get_object (h); - if (go) { - std::string go_name = go.get_properties () - .graphics_object_name (); + std::string go_name + = go.get_properties ().graphics_object_name (); if (go_name.length () > 1 && go_name[0] == 'u' && go_name[1] == 'i')