summaryrefslogtreecommitdiff
path: root/test/buttons.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/buttons.cxx')
-rw-r--r--test/buttons.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/buttons.cxx b/test/buttons.cxx
index e4440e0d2..66827c17f 100644
--- a/test/buttons.cxx
+++ b/test/buttons.cxx
@@ -39,7 +39,8 @@
int main(int argc, char ** argv) {
Fl_Window *window = new Fl_Window(320,130);
- (new Fl_Button(10, 10, 130, 30, "Fl_Button"))->tooltip("This is a Tooltip.");
+ Fl_Button *b = new Fl_Button(10, 10, 130, 30, "Fl_Button");
+ b->tooltip("This is a Tooltip.");
new Fl_Return_Button(150, 10, 160, 30, "Fl_Return_Button");
new Fl_Repeat_Button(10,50,130,30,"Fl_Repeat_Button");
new Fl_Light_Button(10,90,130,30,"Fl_Light_Button");