mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1158081 - Patch (2/2): Simplify |BluetoothOppManager::SendObexData| function, r=tzimmermann
This commit is contained in:
parent
fcbc137d58
commit
1f25ec0b52
@ -1400,14 +1400,12 @@ BluetoothOppManager::ReplyError(uint8_t aError)
|
||||
void
|
||||
BluetoothOppManager::SendObexData(uint8_t* aData, uint8_t aOpcode, int aSize)
|
||||
{
|
||||
SetObexPacketInfo(aData, aOpcode, aSize);
|
||||
|
||||
if (!mIsServer) {
|
||||
mLastCommand = aOpcode;
|
||||
}
|
||||
|
||||
UnixSocketRawData* s = new UnixSocketRawData(aData, aSize);
|
||||
mSocket->SendSocketData(s);
|
||||
SetObexPacketInfo(aData, aOpcode, aSize);
|
||||
mSocket->SendSocketData(new UnixSocketRawData(aData, aSize));
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1337,14 +1337,12 @@ BluetoothOppManager::ReplyError(uint8_t aError)
|
||||
void
|
||||
BluetoothOppManager::SendObexData(uint8_t* aData, uint8_t aOpcode, int aSize)
|
||||
{
|
||||
SetObexPacketInfo(aData, aOpcode, aSize);
|
||||
|
||||
if (!mIsServer) {
|
||||
mLastCommand = aOpcode;
|
||||
}
|
||||
|
||||
UnixSocketRawData* s = new UnixSocketRawData(aData, aSize);
|
||||
mSocket->SendSocketData(s);
|
||||
SetObexPacketInfo(aData, aOpcode, aSize);
|
||||
mSocket->SendSocketData(new UnixSocketRawData(aData, aSize));
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user