Initialise CMultiColorLED::eColorFlag earlier.
This avoids an uninitialised read when Reset() is called.
This commit is contained in:
parent
6cac92f1b0
commit
b7ef20b222
1 changed files with 3 additions and 3 deletions
|
@ -37,12 +37,12 @@ CMultiColorLED::CMultiColorLED ( QWidget* parent, Qt::WindowFlags f )
|
|||
BitmCubeYellow ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDYellowSmall.png" ) ),
|
||||
BitmCubeRed ( QString::fromUtf8 ( ":/png/LEDs/res/CLEDRedSmall.png" ) )
|
||||
{
|
||||
// init color flags
|
||||
Reset();
|
||||
|
||||
// set init bitmap
|
||||
setPixmap ( BitmCubeGrey );
|
||||
eColorFlag = RL_GREY;
|
||||
|
||||
// init color flags
|
||||
Reset();
|
||||
}
|
||||
|
||||
void CMultiColorLED::changeEvent ( QEvent* curEvent )
|
||||
|
|
Loading…
Reference in a new issue