diff options
author | Bernie Innocenti <codewiz@google.com> | 2018-11-21 18:17:22 +0900 |
---|---|---|
committer | Bernie Innocenti <codewiz@google.com> | 2018-11-21 18:17:22 +0900 |
commit | b9c5e853d9d15fce9989239d672a94c4d3110d07 (patch) | |
tree | 511e71aa647a92c630d192f9ddf2746caf08f266 | |
parent | adb188cd57c068b825bbc4adc6ecc35cf685991a (diff) | |
download | netd-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.cpp | 2 |
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); }; |