Summary: | [Intl] Change the return type of canonicalizeLocaleList() from JSArray* to Vector<String> | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Sukolsak Sakshuwong <sukolsak> | ||||||
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | andy, benjamin, commit-queue, sukolsak | ||||||
Priority: | P2 | ||||||||
Version: | WebKit Nightly Build | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Sukolsak Sakshuwong
2015-10-05 08:18:11 PDT
Created attachment 262439 [details]
Patch
Comment on attachment 262439 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=262439&action=review Ok > Source/JavaScriptCore/runtime/IntlCollatorConstructor.cpp:152 > + const Vector<String>& requestedLocales = canonicalizeLocaleList(exec, exec->argument(0)); IMHO, using Vector<String> makes the lifetime clearer. Created attachment 262467 [details]
Use the LHS Vector<String> instead of const Vector<String>&
(In reply to comment #2) > Comment on attachment 262439 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=262439&action=review > > Ok > > > Source/JavaScriptCore/runtime/IntlCollatorConstructor.cpp:152 > > + const Vector<String>& requestedLocales = canonicalizeLocaleList(exec, exec->argument(0)); > > IMHO, using Vector<String> makes the lifetime clearer. Thanks! Fixed. Comment on attachment 262467 [details] Use the LHS Vector<String> instead of const Vector<String>& Clearing flags on attachment: 262467 Committed r190591: <http://trac.webkit.org/changeset/190591> All reviewed patches have been landed. Closing bug. |