commit | c7a78127c3395fc4c79c335bf6b8905311de7c6e | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Fri Mar 08 14:31:24 2019 -0800 |
committer | Yi Kong <yikong@google.com> | Fri Mar 08 14:31:24 2019 -0800 |
tree | 2702c3e940c030529b22d8951964bb92699efcf6 | |
parent | 72ec4e58a8906fc1f714b1b4d0ec37fd955f4a32 [diff] |
Fix performance-unnecessary-value-param warning The upcoming compiler emits new warning: system/apex/apexd/apexd_session.cpp:146:38: warning: the parameter 's' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param] [&](ApexSession s) { return s.GetState() != state; }), Change to use const reference for performance. Test: m checkbuild Change-Id: I87dcd1cd194d07bad614551d73e119f7126340ac