From e4d2cd5dfda1546fb88e057e1ce3eb1c97e0f35a Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Tue, 7 Sep 2010 12:45:08 +0000 Subject: [PATCH] Style cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38567 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/glteapot/ObjectView.cpp | 2 +- src/preferences/backgrounds/BackgroundsView.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/glteapot/ObjectView.cpp b/src/apps/glteapot/ObjectView.cpp index 85cfbc9710..590a608d2d 100644 --- a/src/apps/glteapot/ObjectView.cpp +++ b/src/apps/glteapot/ObjectView.cpp @@ -517,7 +517,7 @@ ObjectView::MouseMoved(BPoint point, uint32 transit, const BMessage *msg) setEvent(drawEvent); } } else { - GLObject* object = reinterpret_cast(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); diff --git a/src/preferences/backgrounds/BackgroundsView.cpp b/src/preferences/backgrounds/BackgroundsView.cpp index f0def5719c..1077b1442a 100644 --- a/src/preferences/backgrounds/BackgroundsView.cpp +++ b/src/preferences/backgrounds/BackgroundsView.cpp @@ -1204,7 +1204,8 @@ void 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;