Home » U++ Library support » StatusBar&InfoCtrl » Code rendudance in StatusBar::StatusBar() method
Code rendudance in StatusBar::StatusBar() method [message #22832] |
Fri, 21 August 2009 08:25  |
|
Hello Mirek,
It is not so important... but the StatusBar::StatusBar() method have redundant code. Property frame.style is set double with same value.
here is the original code:
StatusBar::StatusBar()
{
Height(5 + max(16, Draw::GetStdFontCy()));
frame.style = frame.style = &StyleDefault();
SetFrame(frame);
AddFrame(grip);
}
And I think must to be:
StatusBar::StatusBar()
{
Height(5 + max(16, Draw::GetStdFontCy()));
frame.style = &StyleDefault();
SetFrame(frame);
AddFrame(grip);
}
|
|
|
Goto Forum:
Current Time: Mon May 29 05:23:43 CEST 2023
Total time taken to generate the page: 0.01955 seconds
|