Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb451f6d authored by Chris Manton's avatar Chris Manton
Browse files

IA2: Change bta::dm::gatt_history_callback from a copy to a reference

Bug: 298524037
Test: atest bt_host_test_bta

Change-Id: I3c75513cacc639661cec1f3a82eb8870dda01151
parent 63ff038e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ gatt_interface_t* gatt_interface = &default_gatt_interface;

gatt_interface_t& get_gatt_interface() { return *gatt_interface; }

void gatt_history_callback(const std::string entry) {
void gatt_history_callback(const std::string& entry) {
  gatt_history_.Push(entry);
}

+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ gatt_interface_t& get_gatt_interface();
//
// Appends a callback entry into GATT client API/callback history
//
void gatt_history_callback(const std::string entry);
void gatt_history_callback(const std::string& entry);

//
// Dumps the GATT client API/callback history to dumpsys