Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

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);
}
Re: Code rendudance in StatusBar::StatusBar() method [message #22887 is a reply to message #22832] Mon, 24 August 2009 21:17 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks.

Mirek
Previous Topic: Adding some spacing to a statusbar
Next Topic: how to add a ToolBar to StatusBar
Goto Forum:
  


Current Time: Thu Mar 28 19:13:51 CET 2024

Total time taken to generate the page: 0.01855 seconds