diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2013-06-25 23:02:46 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-09 23:20:13 -0700 |
commit | 3919044bd7d3bcb85ce3425a43b8889a248a7542 (patch) | |
tree | 7c988eee011ec632c9ebbf4fc7ae61033c42cce6 /src/Composite.c | |
parent | d395f487e659ee1091eb60c89c551ba1b61dfe51 (diff) |
Avoid shadowing variables.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Composite.c')
-rw-r--r-- | src/Composite.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Composite.c b/src/Composite.c index 29893d8..ef77e53 100644 --- a/src/Composite.c +++ b/src/Composite.c @@ -175,17 +175,17 @@ static void InheritAllowsChangeManagedSet( } static void CompositeClassPartInitialize( - WidgetClass widgetClass) + WidgetClass cwidgetClass) { register CompositePartPtr wcPtr; register CompositePartPtr superPtr = NULL; wcPtr = (CompositePartPtr) - &(((CompositeWidgetClass)widgetClass)->composite_class); + &(((CompositeWidgetClass)cwidgetClass)->composite_class); - if (widgetClass != compositeWidgetClass) + if (cwidgetClass != compositeWidgetClass) /* don't compute possible bogus pointer */ - superPtr = (CompositePartPtr)&(((CompositeWidgetClass)widgetClass + superPtr = (CompositePartPtr)&(((CompositeWidgetClass)cwidgetClass ->core_class.superclass)->composite_class); /* We don't need to check for null super since we'll get to composite @@ -200,7 +200,7 @@ static void CompositeClassPartInitialize( if (wcPtr->change_managed == XtInheritChangeManaged) { wcPtr->change_managed = superPtr->change_managed; - InheritAllowsChangeManagedSet(widgetClass); + InheritAllowsChangeManagedSet(cwidgetClass); } if (wcPtr->insert_child == XtInheritInsertChild) { |