[haiku-commits] r38773 - haiku/trunk/src/tests/libs/alm

  • From: clemens.zeidler@xxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 22 Sep 2010 01:37:31 +0200 (CEST)

Author: czeidler
Date: 2010-09-22 01:37:31 +0200 (Wed, 22 Sep 2010)
New Revision: 38773
Changeset: http://dev.haiku-os.org/changeset/38773

Modified:
   haiku/trunk/src/tests/libs/alm/HelloWorld.cpp
   haiku/trunk/src/tests/libs/alm/Pinwheel.cpp
   haiku/trunk/src/tests/libs/alm/TwoViews.cpp
Log:
Fix warnings and some coding style issues.



Modified: haiku/trunk/src/tests/libs/alm/HelloWorld.cpp
===================================================================
--- haiku/trunk/src/tests/libs/alm/HelloWorld.cpp       2010-09-21 23:35:36 UTC 
(rev 38772)
+++ haiku/trunk/src/tests/libs/alm/HelloWorld.cpp       2010-09-21 23:37:31 UTC 
(rev 38773)
@@ -17,8 +17,9 @@
 class HelloWorldWindow : public BWindow {
 public:
        HelloWorldWindow(BRect frame) 
-               : BWindow(frame, "ALM Hello World",
-                       B_TITLED_WINDOW, B_QUIT_ON_WINDOW_CLOSE)
+               :
+               BWindow(frame, "ALM Hello World", B_TITLED_WINDOW,
+                       B_QUIT_ON_WINDOW_CLOSE)
        {
                button1 = new BButton("Hello World!");
 
@@ -48,7 +49,8 @@
 class HelloWorld : public BApplication {
 public:
        HelloWorld() 
-               : BApplication("application/x-vnd.haiku.HelloWorld") 
+               :
+               BApplication("application/x-vnd.haiku.HelloWorld") 
        {
                BRect frameRect;
                frameRect.Set(100, 100, 300, 300);

Modified: haiku/trunk/src/tests/libs/alm/Pinwheel.cpp
===================================================================
--- haiku/trunk/src/tests/libs/alm/Pinwheel.cpp 2010-09-21 23:35:36 UTC (rev 
38772)
+++ haiku/trunk/src/tests/libs/alm/Pinwheel.cpp 2010-09-21 23:37:31 UTC (rev 
38773)
@@ -18,8 +18,8 @@
 class PinwheelWindow : public BWindow {
 public:
        PinwheelWindow(BRect frame) 
-               : BWindow(frame, "ALM Pinwheel",
-                       B_TITLED_WINDOW, B_QUIT_ON_WINDOW_CLOSE)
+               :
+               BWindow(frame, "ALM Pinwheel", B_TITLED_WINDOW, 
B_QUIT_ON_WINDOW_CLOSE)
        {
                button1 = new BButton("1");
                button2 = new BButton("2");
@@ -47,30 +47,17 @@
                YTab* y1 = layout->AddYTab();
                YTab* y2 = layout->AddYTab();
 
-               Area* a1 = layout->AddArea(
-                       layout->Left(), layout->Top(), 
-                       x2, y1,
+               Area* a1 = layout->AddArea(layout->Left(), layout->Top(), x2, 
y1,
                        button1);
-               Area* a2 = layout->AddArea(
-                       x2, layout->Top(), 
-                       layout->Right(), y2,
-                       button2);
-               Area* a3 = layout->AddArea(
-                       x1, y2, 
-                       layout->Right(), layout->Bottom(),
+               layout->AddArea(x2, layout->Top(), layout->Right(), y2, 
button2);
+               Area* a3 = layout->AddArea(x1, y2, layout->Right(), 
layout->Bottom(),
                        button3);
-               Area* a4 = layout->AddArea(
-                       layout->Left(), y1, 
-                       x1, layout->Bottom(),
-                       button4);
-               Area* a5 = layout->AddArea(
-                       x1, y1,
-                       x2, y2,
-                       textView1);
+               layout->AddArea(layout->Left(), y1, x1, layout->Bottom(), 
button4);
+               layout->AddArea(x1, y1, x2, y2, textView1);
 
                a1->HasSameSizeAs(a3);
        }
-       
+
 private:
        BButton* button1;
        BButton* button2;
@@ -83,7 +70,8 @@
 class Pinwheel : public BApplication {
 public:
        Pinwheel() 
-               : BApplication("application/x-vnd.haiku.Pinwheel") 
+               :
+               BApplication("application/x-vnd.haiku.Pinwheel") 
        {
                BRect frameRect;
                frameRect.Set(100, 100, 300, 300);

Modified: haiku/trunk/src/tests/libs/alm/TwoViews.cpp
===================================================================
--- haiku/trunk/src/tests/libs/alm/TwoViews.cpp 2010-09-21 23:35:36 UTC (rev 
38772)
+++ haiku/trunk/src/tests/libs/alm/TwoViews.cpp 2010-09-21 23:37:31 UTC (rev 
38773)
@@ -34,13 +34,9 @@
                // create an extra tab
                XTab* x1 = layout->AddXTab();
 
-               Area* a1 = layout->AddArea(
-                       layout->Left(), layout->Top(), 
-                       x1, layout->Bottom(),
+               layout->AddArea(layout->Left(), layout->Top(), x1, 
layout->Bottom(),
                        button1);
-               Area* a2 = layout->AddArea(
-                       x1, layout->Top(), 
-                       layout->Right(), layout->Bottom(),
+               layout->AddArea(x1, layout->Top(), layout->Right(), 
layout->Bottom(),
                        textView1);
 
                // add a constraint: 2*x1 == right


Other related posts:

  • » [haiku-commits] r38773 - haiku/trunk/src/tests/libs/alm - clemens . zeidler