Commit 11ab0d70 authored by André Bargull's avatar André Bargull
Browse files

Bug 1716790 - Part 4: Remove unnecessary 'const' modifier. r=dminor

These occurences of `const` in parameters were missed when `const` was removed
in the previous "Unified Intl" patches.

Depends on D118021

Differential Revision: https://phabricator.services.mozilla.com/D118022
parent 0844661d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -46,9 +46,7 @@ class FormatBuffer {
  /**
   * Ensures the buffer has enough space to accommodate |size| elements.
   */
  [[nodiscard]] bool reserve(const size_t size) {
    return buffer_.reserve(size);
  }
  [[nodiscard]] bool reserve(size_t size) { return buffer_.reserve(size); }

  /**
   * Returns the raw data inside the buffer.
+3 −3
Original line number Diff line number Diff line
@@ -146,8 +146,8 @@ void js::PluralRulesObject::finalize(JSFreeOp* fop, JSObject* obj) {
  }
}

static JSString* KeywordToString(
    JSContext* cx, const mozilla::intl::PluralRules::Keyword keyword) {
static JSString* KeywordToString(JSContext* cx,
                                 mozilla::intl::PluralRules::Keyword keyword) {
  using Keyword = mozilla::intl::PluralRules::Keyword;
  switch (keyword) {
    case Keyword::Zero: {
@@ -338,7 +338,7 @@ bool js::intl_GetPluralCategories(JSContext* cx, unsigned argc, Value* vp) {
    return false;
  }

  for (const PluralRules::Keyword keyword : categories.unwrap()) {
  for (PluralRules::Keyword keyword : categories.unwrap()) {
    JSString* str = KeywordToString(cx, keyword);
    MOZ_ASSERT(str);