Initialize QBluetoothSocket::socketError properly.
authorAlex Blasche <alexander.blasche@digia.com>
Tue, 28 Jan 2014 10:57:09 +0000 (11:57 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 28 Jan 2014 19:33:47 +0000 (20:33 +0100)
commit43a95bb690d2c37c031fc827efe922ea334780c1
treeb8e1a13c9d6314e188f850c2ea7d4b1daffdfb2c
parent29de876f55dc96748fdca8dd3fef0c873791796f
Initialize QBluetoothSocket::socketError properly.

So far the initial value is compiler dependent. In most cases this meant
it was set to 0. However 0 is not even a valid
QBluetoothSocket::SocketError enum value. The NoSocketError value is -2.

Change-Id: Ieee4f7bd1c97d758295f4d0cc1297f62c114f4f3
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
src/bluetooth/qbluetoothsocket_bluez.cpp
src/bluetooth/qbluetoothsocket_qnx.cpp