commit | aed7ad07e8ac7eba7ec22a1a763878ff27362224 | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Wed Aug 03 15:04:33 2022 -0700 |
committer | Siarhei Vishniakou <svv@google.com> | Thu Aug 04 02:47:39 2022 +0000 |
tree | eb383211164404991e4e085255879cd60858d8a3 | |
parent | f9323e22ab5b78ab37a4a39865061f5b2cf5f2e7 [diff] |
Use sp<>::make instead of new For better refcount safety, use sp<>::make instead of new. After this change, sp<T> t = new T(args..) will be prohibited at compile time. Bug: 241125940 Test: m checkinput Change-Id: I27806ca8f41e8d67744f3569c87a64241318c20b