commit | b9a17549eee63fe06be0c55823211b19d4535112 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Wed Oct 17 17:37:23 2018 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Thu Oct 18 13:11:41 2018 +0000 |
tree | 37c96f2db9e49c8b204f952ba41b5c810253fa27 | |
parent | 97f388fdba793fdd2002df32f3bae1198064312f [diff] |
Fix linter warnings with unnecessary copies There were several warnings like this: system/netd/libnetdutils/StatusTest.cpp:31:12: warning: local copy 'status2' of the variable 'status1' is never modified; consider avoiding the copy [performance-unnecessary-copy-initialization] Status status2(status1); ~~~~~~ ^ const & Rearranged the tests to eliminate some of these, mark the remaining ones as NOLINT. Test: atest netdutils_test Change-Id: I27898600ea8fa63afed628fbbaf00543718f70ce