commit | 5c0b835816a4fac68c50a45f1112824da4504990 | [log] [tgz] |
---|---|---|
author | Devin Moore <devinmoore@google.com> | Thu Sep 05 19:45:27 2024 +0000 |
committer | Devin Moore <devinmoore@google.com> | Thu Sep 05 23:57:27 2024 +0000 |
tree | e2999fe1a3f12cc436fec259b9c7d433880bc364 | |
parent | 69333d682bdc641c92bd88181ffe7219ac348a5b [diff] |
std::move member initializer lists Was previously creating a weak_ptr from a shared_ptr that was already moved. Only worked becuase the constructor wasn't actually moving the argument as expected. std::move in constructor initializer lists when desired. Create the weak_ptr before moving. Test: atest binderRpcTest Bug: aosp/3212539 comment after submitting Change-Id: I8ce98cbcb5e3a40b240ffb1114cbee41be976d61