[Bluetooth] Fix for test.
authorTomasz Marciniak <t.marciniak@samsung.com>
Wed, 27 May 2015 12:18:56 +0000 (14:18 +0200)
committerHyunjin Park <hj.na.park@samsung.com>
Tue, 2 Jun 2015 06:01:09 +0000 (15:01 +0900)
[Verification] Code compiles without errors.
Manual test BluetoothSocket_readData passes.

Change-Id: Ia41d99f58475b75df01eb5c4219a8e506ce45d5d
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/bluetooth/bluetooth_adapter.cc

index 3b67914..104ff21 100755 (executable)
@@ -1439,7 +1439,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]);