#12775: [Patch] BluetoothServer.cpp: fix gcc6 build
-------------------------------+------------------------------
Reporter: mt | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Servers | Version: R1/Development
Keywords: servers/bluetooth | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
-------------------------------+------------------------------
In BluetoothServer::QuitRequested(), gcc6 x86_64 stops build with invalid
conversion error, I think RemoveItemAt() may be used instead of
RemoveItem() here.
{{{
C++
/home/haiku/haiku/haiku/generated64/objects/haiku/x86_64/release/servers/bluetooth/BluetoothServer.o
/home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.cpp: In
member function 'virtual bool BluetoothServer::QuitRequested()':
/home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.cpp:77:32:
error: invalid conversion from 'int32 {aka int}' to 'LocalDeviceImpl*'
[-fpermissive]
fLocalDevicesList.RemoveItem((int32)0)) != NULL)
^~~~~~~~
In file included from
/home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.h:11:0,
from
/home/haiku/haiku/haiku/src/servers/bluetooth/BluetoothServer.cpp:29:
/home/haiku/haiku/haiku/headers/os/support/ObjectList.h:510:1: note:
initializing argument 1 of 'bool BObjectList<T>::RemoveItem(T*, bool)
[with T = LocalDeviceImpl]'
BObjectList<T>::RemoveItem(T* item, bool deleteIfOwning)
^~~~~~~~~~~~~~
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/12775>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.