Mercurial > octave-dspies
diff libgui/graphics/Container.cc @ 18931:dbb207d10d7c
eliminate some shadowed variable declaration warnings
* BaseControl.cc, Container.cc, ContextMenu.cc, Figure.cc,
FigureWindow.cc, GLCanvas.cc, GenericEventNotify.h, Menu.cc,
MouseModeActionGroup.cc, Panel.cc, TextEdit.cc, TextEdit.h,
ToolBar.cc: Avoid shadowed variable declaration warnings.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 17 Jul 2014 10:27:24 -0400 |
parents | fe0e34be5576 |
children |
line wrap: on
line diff
--- a/libgui/graphics/Container.cc Thu Jul 17 09:33:27 2014 -0400 +++ b/libgui/graphics/Container.cc Thu Jul 17 10:27:24 2014 -0400 @@ -37,8 +37,8 @@ namespace QtHandles { -Container::Container (QWidget* parent) - : ContainerBase (parent), m_canvas (0) +Container::Container (QWidget* xparent) + : ContainerBase (xparent), m_canvas (0) { setFocusPolicy (Qt::ClickFocus); } @@ -47,18 +47,18 @@ { } -Canvas* Container::canvas (const graphics_handle& handle, bool create) +Canvas* Container::canvas (const graphics_handle& xhandle, bool xcreate) { - if (! m_canvas && create) + if (! m_canvas && xcreate) { - graphics_object go = gh_manager::get_object (handle); + graphics_object go = gh_manager::get_object (xhandle); if (go) { graphics_object fig = go.get_ancestor ("figure"); m_canvas = Canvas::create (fig.get("renderer").string_value (), - this, handle); + this, xhandle); QWidget* canvasWidget = m_canvas->qWidget (); @@ -96,11 +96,11 @@ } } -void Container::childEvent (QChildEvent* event) +void Container::childEvent (QChildEvent* xevent) { - if (event->child ()->isWidgetType ()) + if (xevent->child ()->isWidgetType ()) { - qobject_cast<QWidget*> (event->child ())->setMouseTracking (hasMouseTracking ()); + qobject_cast<QWidget*> (xevent->child ())->setMouseTracking (hasMouseTracking ()); } }