[temporal] Use const ref consistently for std::vector arguments

Change-Id: I7ecdfa6ee865d87851bf1975ddd48bd0bfcd39ba
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3805822
Reviewed-by: Frank Tang <ftang@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82410}
This commit is contained in:
Adam Klein 2022-08-02 09:43:04 -07:00 committed by V8 LUCI CQ
parent cf765fc348
commit 338869fc03
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ MaybeHandle<JSReceiver> CoerceOptionsToObject(Isolate* isolate,
Maybe<bool> GetStringOption(Isolate* isolate, Handle<JSReceiver> options,
const char* property,
std::vector<const char*> values,
const std::vector<const char*>& values,
const char* method_name,
std::unique_ptr<char[]>* result) {
Handle<String> property_str =

View File

@ -36,7 +36,7 @@ V8_WARN_UNUSED_RESULT MaybeHandle<JSReceiver> CoerceOptionsToObject(
// printing the error message.
V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT Maybe<bool> GetStringOption(
Isolate* isolate, Handle<JSReceiver> options, const char* property,
std::vector<const char*> values, const char* method_name,
const std::vector<const char*>& values, const char* method_name,
std::unique_ptr<char[]>* result);
// A helper template to get string from option into a enum.