playground: fixes a 64 bit warning.
This commit is contained in:
@@ -92,8 +92,9 @@ class ObjectListView : public BListView {
|
|||||||
|
|
||||||
virtual bool InitiateDrag(BPoint point, int32 itemIndex, bool wasSelected)
|
virtual bool InitiateDrag(BPoint point, int32 itemIndex, bool wasSelected)
|
||||||
{
|
{
|
||||||
printf("InitiateDrag(BPoint(%.1f, %.1f), itemIndex: %ld, wasSelected: %d)\n",
|
printf("InitiateDrag(BPoint(%.1f, %.1f), itemIndex: %" B_PRId32
|
||||||
point.x, point.y, itemIndex, wasSelected);
|
", wasSelected: %d)\n", point.x, point.y, itemIndex,
|
||||||
|
wasSelected);
|
||||||
SwapItems(itemIndex, itemIndex + 1);
|
SwapItems(itemIndex, itemIndex + 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user