Initialize fLabel and fTrailingLabel in the constructor. Thanks to Marc Flerackers for reporting.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12577 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,6 +34,8 @@
|
||||
BStatusBar::BStatusBar(BRect frame, const char *name, const char *label,
|
||||
const char *trailingLabel)
|
||||
: BView(frame, name, B_FOLLOW_LEFT | B_FOLLOW_TOP, B_WILL_DRAW),
|
||||
fLabel(NULL),
|
||||
fTrailingLabel(NULL),
|
||||
fText(NULL),
|
||||
fTrailingText(NULL),
|
||||
fMax(100.0f),
|
||||
@@ -57,6 +59,8 @@ BStatusBar::BStatusBar(BRect frame, const char *name, const char *label,
|
||||
|
||||
BStatusBar::BStatusBar(BMessage *archive)
|
||||
: BView(archive),
|
||||
fLabel(NULL),
|
||||
fTrailingLabel(NULL),
|
||||
fTrailingWidth(-1.0f),
|
||||
fEraseText(-1.0f),
|
||||
fEraseTrailingText(-1.0f),
|
||||
|
||||
Reference in New Issue
Block a user