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;