diff options
Diffstat (limited to 'src/Destroy.c')
-rw-r--r-- | src/Destroy.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Destroy.c b/src/Destroy.c index b72f4c6..37e918a 100644 --- a/src/Destroy.c +++ b/src/Destroy.c @@ -81,11 +81,10 @@ struct _DestroyRec { static void Recursive(Widget widget, XtWidgetProc proc) { register Cardinal i; - CompositePart *cwp; /* Recurse down normal children */ if (XtIsComposite(widget)) { - cwp = &(((CompositeWidget) widget)->composite); + CompositePart *cwp = &(((CompositeWidget) widget)->composite); for (i = 0; i < cwp->num_children; i++) { Recursive(cwp->children[i], proc); } @@ -329,7 +328,7 @@ void _XtDoPhase2Destroy(XtAppContext app, int dispatch_level) void XtDestroyWidget (Widget widget) { XtAppContext app; - DestroyRec *dr, *dr2; + DestroyRec *dr; app = XtWidgetToApplicationContext(widget); LOCK_APP(app); @@ -365,7 +364,7 @@ void XtDestroyWidget (Widget widget) dr = app->destroy_list + (--i); if (dr->dispatch_level < app->dispatch_level && IsDescendant(dr->widget, widget)) { - dr2 = app->destroy_list + (app->destroy_count-1); + DestroyRec *dr2 = app->destroy_list + (app->destroy_count-1); dr2->dispatch_level = dr->dispatch_level; break; } |