commit | a82e4d3e4dfa452f9752c6bc6e6aa1c5a7c3d247 | [log] [tgz] |
---|---|---|
author | Lei YU <yulei.sh@bytedance.com> | Wed Jul 13 10:03:20 2022 +0800 |
committer | Lei YU <yulei.sh@bytedance.com> | Wed Jul 13 19:55:17 2022 +0800 |
tree | 68dd158c46617b84dbacfb49dcacf1872e4bee0a | |
parent | ce1f4fc56c364b61e54b3ace0730fbce7cf89258 [diff] |
message_parsers: Use const reference where possible The code was passing std::shared_ptr<xxx> by value (or const value), which creates unnecessary copies of shared_ptr. Use `const std::shared_ptr<xxx>&` where possible to eliminate such copies. Tested: No code logic changes. Verify the build passes and the net-ipmid is working as before. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: Iad6c3b209ab8299fa477784e86c22be19f98a344