[haiku-commits] r38567 - in haiku/trunk/src: apps/glteapot preferences/backgrounds

  • From: philippe.houdoin@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 7 Sep 2010 14:45:08 +0200 (CEST)

Author: phoudoin
Date: 2010-09-07 14:45:08 +0200 (Tue, 07 Sep 2010)
New Revision: 38567
Changeset: http://dev.haiku-os.org/changeset/38567

Modified:
   haiku/trunk/src/apps/glteapot/ObjectView.cpp
   haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp
Log:
Style cleanup.


Modified: haiku/trunk/src/apps/glteapot/ObjectView.cpp
===================================================================
--- haiku/trunk/src/apps/glteapot/ObjectView.cpp        2010-09-07 12:14:20 UTC 
(rev 38566)
+++ haiku/trunk/src/apps/glteapot/ObjectView.cpp        2010-09-07 12:45:08 UTC 
(rev 38567)
@@ -517,7 +517,7 @@
                        setEvent(drawEvent);
                }
        } else {
-               GLObject* object = 
reinterpret_cast<GLObject*>(fObjects.ItemAt(ObjectAtPoint(point)));
+               void* object = fObjects.ItemAt(ObjectAtPoint(point));
                BCursor cursor(object != NULL ?
                        B_CURSOR_ID_GRAB : B_CURSOR_ID_SYSTEM_DEFAULT);
                SetViewCursor(&cursor);

Modified: haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp
===================================================================
--- haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp 2010-09-07 
12:14:20 UTC (rev 38566)
+++ haiku/trunk/src/preferences/backgrounds/BackgroundsView.cpp 2010-09-07 
12:45:08 UTC (rev 38567)
@@ -1204,7 +1204,8 @@
 PreView::MouseMoved(BPoint point, uint32 transit, const BMessage* message)
 {
        if (!IsTracking()) {
-               BCursor cursor(IsEnabled() ? B_CURSOR_ID_GRAB : 
B_CURSOR_ID_SYSTEM_DEFAULT);
+               BCursor cursor(IsEnabled() ?
+                       B_CURSOR_ID_GRAB : B_CURSOR_ID_SYSTEM_DEFAULT);
                SetViewCursor(&cursor);
        } else {
                float x, y;


Other related posts: