Make a parameter a const reference
Change-Id: I7d232dd9be3a03b5bd9f1d46c307d080fadf9116 Reviewed-on: https://chromium-review.googlesource.com/1179978 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
6ee298a346
commit
47b4a1c105
1 changed files with 1 additions and 1 deletions
|
@ -558,7 +558,7 @@ bool DwarfCUToModule::FuncHandler::EndAttributes() {
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool IsEmptyRange(vector<Module::Range> ranges) {
|
||||
static bool IsEmptyRange(const vector<Module::Range>& ranges) {
|
||||
uint64 size = accumulate(ranges.cbegin(), ranges.cend(), 0,
|
||||
[](uint64 total, Module::Range entry) {
|
||||
return total + entry.size;
|
||||
|
|
Loading…
Reference in a new issue