diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime')
4 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp index 5e14a77690..119bfe86ff 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp @@ -266,7 +266,7 @@ ThrowCompletionOr<Vector<String>> canonicalize_locale_list(GlobalObject& global_ } // 9.2.2 BestAvailableLocale ( availableLocales, locale ), https://tc39.es/ecma402/#sec-bestavailablelocale -Optional<String> best_available_locale(StringView const& locale) +Optional<String> best_available_locale(StringView locale) { // 1. Let candidate be locale. StringView candidate = locale; diff --git a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h index 16e5391053..a2f15493ab 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.h @@ -39,7 +39,7 @@ String canonicalize_unicode_locale_id(Unicode::LocaleID& locale); bool is_well_formed_currency_code(StringView currency); bool is_well_formed_unit_identifier(StringView unit_identifier); ThrowCompletionOr<Vector<String>> canonicalize_locale_list(GlobalObject&, Value locales); -Optional<String> best_available_locale(StringView const& locale); +Optional<String> best_available_locale(StringView locale); String insert_unicode_extension_and_canonicalize(Unicode::LocaleID locale_id, Unicode::LocaleExtension extension); LocaleResult resolve_locale(Vector<String> const& requested_locales, LocaleOptions const& options, Vector<StringView> const& relevant_extension_keys); Vector<String> lookup_supported_locales(Vector<String> const& requested_locales); diff --git a/Userland/Libraries/LibJS/Runtime/Utf16String.cpp b/Userland/Libraries/LibJS/Runtime/Utf16String.cpp index e5ad11e822..c1d98c1b5f 100644 --- a/Userland/Libraries/LibJS/Runtime/Utf16String.cpp +++ b/Userland/Libraries/LibJS/Runtime/Utf16String.cpp @@ -32,7 +32,7 @@ NonnullRefPtr<Utf16StringImpl> Utf16StringImpl::create(Vector<u16, 1> string) return adopt_ref(*new Utf16StringImpl(move(string))); } -NonnullRefPtr<Utf16StringImpl> Utf16StringImpl::create(StringView const& string) +NonnullRefPtr<Utf16StringImpl> Utf16StringImpl::create(StringView string) { return create(AK::utf8_to_utf16(string)); } @@ -67,7 +67,7 @@ Utf16String::Utf16String(Vector<u16, 1> string) { } -Utf16String::Utf16String(StringView const& string) +Utf16String::Utf16String(StringView string) : m_string(Detail::Utf16StringImpl::create(move(string))) { } diff --git a/Userland/Libraries/LibJS/Runtime/Utf16String.h b/Userland/Libraries/LibJS/Runtime/Utf16String.h index e38e5b4592..84d3afc364 100644 --- a/Userland/Libraries/LibJS/Runtime/Utf16String.h +++ b/Userland/Libraries/LibJS/Runtime/Utf16String.h @@ -21,7 +21,7 @@ public: static NonnullRefPtr<Utf16StringImpl> create(); static NonnullRefPtr<Utf16StringImpl> create(Vector<u16, 1>); - static NonnullRefPtr<Utf16StringImpl> create(StringView const&); + static NonnullRefPtr<Utf16StringImpl> create(StringView); static NonnullRefPtr<Utf16StringImpl> create(Utf16View const&); Vector<u16, 1> const& string() const; @@ -40,7 +40,7 @@ class Utf16String { public: Utf16String(); explicit Utf16String(Vector<u16, 1>); - explicit Utf16String(StringView const&); + explicit Utf16String(StringView); explicit Utf16String(Utf16View const&); Vector<u16, 1> const& string() const; |