• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revisionfcd93fd2a29f4a69f98cb650a0b982dbfc42418e (tree)
Time2019-10-16 13:42:57
AuthorNick Desaulniers <ndesaulniers@goog...>
Commiterandroid-build-merger

Log Message

[system][bt] fix -Wdangling-gsl am: 20ed45d633 am: 2f0c176bad am: 2bcb84cd7d am: 6c6ffc3d18 am: 9e474d2ee6
am: be1c9c3248

Change-Id: I25f8df91c9fb578829bafa44f9f0adfa7580c117

Change Summary

Incremental Difference

--- a/service/low_energy_client.cc
+++ b/service/low_energy_client.cc
@@ -188,8 +188,8 @@ void LowEnergyClient::MtuChangedCallback(
188188
189189 if (!bda) return;
190190
191- const char* addr = BtAddrString(bda).c_str();
192- if (delegate_) delegate_->OnMtuChanged(this, status, addr, mtu);
191+ std::string addr = BtAddrString(bda);
192+ if (delegate_) delegate_->OnMtuChanged(this, status, addr.c_str(), mtu);
193193 }
194194
195195 // LowEnergyClientFactory implementation