[Bluetooth] Fix for test.
authorTomasz Marciniak <t.marciniak@samsung.com>
Wed, 27 May 2015 12:18:56 +0000 (14:18 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 28 May 2015 07:05:19 +0000 (16:05 +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 c3719b539be9c78ec2e9a8b2112b12b45fb0782e..fd5d6ec040665a931e03781e3913ebd4e2480396 100644 (file)
@@ -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]);