Re: [ROOT] Uninitialized data members in TGButton.cxx

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Mar 29 2002 - 21:17:25 MET


Hi Glen,

Thanks for reporting this uninitialized variable.
Your patch now in CVS.

Rene Brun

On Fri, 29 Mar 2002, Glen R. Salo wrote:

> The following changes to TGButton.cxx seem to fix a problem I was having
> with my GUIs.  My problems were fixed by initializing the fHKeycode to
> zero in TGCheckButton and TGRadioButton following the same convention used
> in TGTextButton.  My changes are noted below.
> 
> Thanks,
> 
> Glen
> 
> //_________________________________________________________________________
> _____
> void TGCheckButton::Init()
> {
>    // Common initialization.
> 
>    fPrevState =
>    fState     = kButtonUp;
>    fHKeycode = 0;  // <-- My modification
> 
> 
> //_________________________________________________________________________
> _____
> void TGRadioButton::Init()
> {
>    // Common radio button initialization.
> 
>    fPrevState =
>    fState     = kButtonUp;
>    fHKeycode = 0; // <-- My modification
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:47 MET