Use layout-friendly constructor.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21252 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-05-27 15:52:22 +00:00
parent 93c4bf98f1
commit d198c3b202
@@ -25,13 +25,11 @@ enum {
// constructor // constructor
ButtonTest::ButtonTest() ButtonTest::ButtonTest()
: Test("Button", NULL), : Test("Button", NULL),
fButton(new BButton(BRect(0, 0, 9, 9), "test button", "", fButton(new BButton("test button", "", (BMessage*)NULL)),
(BMessage*)NULL, B_FOLLOW_NONE)),
fLongTextCheckBox(NULL), fLongTextCheckBox(NULL),
fBigFontCheckBox(NULL), fBigFontCheckBox(NULL),
fDefaultFont(NULL), fDefaultFont(NULL),
fBigFont(NULL) fBigFont(NULL)
{ {
_SetButtonText(false); _SetButtonText(false);
SetView(fButton); SetView(fButton);