summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2018-11-21 18:17:22 +0900
committerBernie Innocenti <codewiz@google.com>2018-11-21 18:17:22 +0900
commitb9c5e853d9d15fce9989239d672a94c4d3110d07 (patch)
tree511e71aa647a92c630d192f9ddf2746caf08f266
parentadb188cd57c068b825bbc4adc6ecc35cf685991a (diff)
downloadnetd-b9c5e853d9d15fce9989239d672a94c4d3110d07.tar.gz
Hush clang-tidy warning about copying UidRangeParcel.
These are small enought that we could really pass them by value... but the clang-tidy isn't smart enough to know that. Test: m netd Change-Id: I4a2cb92373dfc2e53e22f152db7ec7d62cb2f6d3
-rw-r--r--server/UidRanges.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/UidRanges.cpp b/server/UidRanges.cpp
index 359e5ea7..883a13f9 100644
--- a/server/UidRanges.cpp
+++ b/server/UidRanges.cpp
@@ -32,7 +32,7 @@ namespace net {
namespace {
-bool compUidRangeParcel(UidRangeParcel lhs, UidRangeParcel rhs) {
+bool compUidRangeParcel(const UidRangeParcel& lhs, const UidRangeParcel& rhs) {
return lhs.start != rhs.start ? (lhs.start < rhs.start) : (lhs.stop < rhs.stop);
};