From 47b4a1c10597e7360dc2ad60d1122acf43016e7c Mon Sep 17 00:00:00 2001 From: Joshua Peraza Date: Fri, 17 Aug 2018 09:47:44 -0700 Subject: Make a parameter a const reference Change-Id: I7d232dd9be3a03b5bd9f1d46c307d080fadf9116 Reviewed-on: https://chromium-review.googlesource.com/1179978 Reviewed-by: Mark Mentovai --- src/common/dwarf_cu_to_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dwarf_cu_to_module.cc b/src/common/dwarf_cu_to_module.cc index 527a7046..e5071ba7 100644 --- a/src/common/dwarf_cu_to_module.cc +++ b/src/common/dwarf_cu_to_module.cc @@ -558,7 +558,7 @@ bool DwarfCUToModule::FuncHandler::EndAttributes() { return true; } -static bool IsEmptyRange(vector ranges) { +static bool IsEmptyRange(const vector& ranges) { uint64 size = accumulate(ranges.cbegin(), ranges.cend(), 0, [](uint64 total, Module::Range entry) { return total + entry.size; -- cgit v1.2.1