From: Tomasz Marciniak Date: Wed, 27 May 2015 12:18:56 +0000 (+0200) Subject: [Bluetooth] Fix for test. X-Git-Tag: submit/tizen_mobile/20150612.133019^2~2^2~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4defdee16b77fd71c46adbaa6b78fec4033e466b;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Bluetooth] Fix for test. [Verification] Code compiles without errors. Manual test BluetoothSocket_readData passes. Change-Id: Ia41d99f58475b75df01eb5c4219a8e506ce45d5d Signed-off-by: Tomasz Marciniak --- diff --git a/src/bluetooth/bluetooth_adapter.cc b/src/bluetooth/bluetooth_adapter.cc index c3719b53..fd5d6ec0 100644 --- a/src/bluetooth/bluetooth_adapter.cc +++ b/src/bluetooth/bluetooth_adapter.cc @@ -1438,7 +1438,7 @@ void BluetoothAdapter::RemoveSocket(int socket) { void BluetoothAdapter::StoreSocketData(bt_socket_received_data_s* data) { LoggerD("Entered"); - auto data_store = socket_data_[data->socket_fd]; + auto& data_store = socket_data_[data->socket_fd]; for (int i = 0; i < data->data_size; ++i) { data_store.push_back(data->data[i]);