bluetooth/preflet: Fix x86_64 build

This commit is contained in:
Alexander von Gluck IV
2016-04-09 21:43:53 -05:00
parent 837845c53d
commit a4a85baea1
2 changed files with 5 additions and 4 deletions
@@ -304,7 +304,7 @@ BluetoothSettingsView::_BuildLocalDevicesMenu()
fLocalDevicesMenu = new BPopUpMenu(B_TRANSLATE("Pick device...")); fLocalDevicesMenu = new BPopUpMenu(B_TRANSLATE("Pick device..."));
while (fLocalDevicesMenu->CountItems() > 0) { while (fLocalDevicesMenu->CountItems() > 0) {
BMenuItem* item = fLocalDevicesMenu->RemoveItem(0L); BMenuItem* item = fLocalDevicesMenu->RemoveItem(0);
if (item != NULL) { if (item != NULL) {
delete item; delete item;
@@ -121,14 +121,15 @@ RemoteDevicesView::MessageReceived(BMessage* message)
switch (message->what) { switch (message->what) {
case kMsgAddDevices: case kMsgAddDevices:
{ {
InquiryPanel* inquiryPanel = new InquiryPanel(BRect(100, 100, 450, 450), InquiryPanel* inquiryPanel= new InquiryPanel(
ActiveLocalDevice); BRect(100, 100, 450, 450), ActiveLocalDevice);
inquiryPanel->Show(); inquiryPanel->Show();
break; break;
} }
case kMsgRemoveDevice: case kMsgRemoveDevice:
printf("kMsgRemoveDevice: %ld\n", fDeviceList->CurrentSelection(0)); printf("kMsgRemoveDevice: %" B_PRId32 "\n",
fDeviceList->CurrentSelection(0));
fDeviceList->RemoveItem(fDeviceList->CurrentSelection(0)); fDeviceList->RemoveItem(fDeviceList->CurrentSelection(0));
break; break;
case kMsgAddToRemoteList: case kMsgAddToRemoteList: