OSDN Git Service

Fix clang-tidy performance-* warnings in system/extras.
authorChih-Hung Hsieh <chh@google.com>
Thu, 3 Aug 2017 21:04:06 +0000 (14:04 -0700)
committerChih-Hung Hsieh <chh@google.com>
Thu, 3 Aug 2017 21:13:18 +0000 (14:13 -0700)
commitf6d5b0d06fc111cf87846eeecd529a202f9ed216
treebb8f2201159584a11ccf502a837f291bae50232e
parentb3734fda74ff55298be8849a9ef91ee8fef17d0d
Fix clang-tidy performance-* warnings in system/extras.

* Use const reference parameter type to avoid unnecessary copy.
* Use more efficient overloaded string methods.

Bug: 30407689
Bug: 30411878
Test: build with WITH_TIDY=1
Change-Id: I558d482910c8a53c042d876848e35cdce8b8c15b
multinetwork/httpurl.cpp
simpleperf/cmd_kmem.cpp
simpleperf/cmd_report_test.cpp
simpleperf/environment.cpp
simpleperf/read_apk.h