OSDN Git Service

Use std::optional instead of std::unique_ptr
authorJooyung Han <jooyung@google.com>
Wed, 18 Nov 2020 12:57:57 +0000 (21:57 +0900)
committerJooyung Han <jooyung@google.com>
Wed, 18 Nov 2020 13:16:48 +0000 (13:16 +0000)
commit3f3acf923b12d74767e0470906feba79a4da0410
tree7a4d08883815eb3e36f029f4bf0fb90936b8975a
parent96ed87bb6af12c60c99dbcc787acb11f9c6f023e
Use std::optional instead of std::unique_ptr

Since Android R, Parcel provides read/write methods for "@nullable"
values using std::optional.

Bug: 149784838
Tag: #refactor
Test: atest --host bluetooth_test_gd
Change-Id: Iae76dc0d7a991888687cf572a43b26b28ad2e93d
service/common/android/bluetooth/scan_filter.cc