commit | 46afe22f9da648487d6e8b7c8a3f35cc15a3412b | [log] [tgz] |
---|---|---|
author | Douglas Anderson <dianders@google.com> | Fri Nov 08 14:38:41 2024 -0800 |
committer | Douglas Anderson <dianders@google.com> | Fri Nov 08 15:48:35 2024 -0800 |
tree | 14ed5a58f776c18f4e4d62799d60e5ab03c2c424 | |
parent | 244a63066b9106c3d64ee79425bbb774aee2f451 [diff] |
init: Avoid extra string copies when finding devices by using const refs Now that FindPlatformDevice() isn't modifying the path argument, and is just passing it on to FindSubsystemDevice(), take this argument by const reference. That should avoid an unnecessary string copy. Bug: 316324155 Test: Compile Change-Id: I1d92a322d0c311ee46a117dd9d650896ec02520f