summaryrefslogtreecommitdiffstats
path: root/js/src/builtin/temporal/TemporalFields.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:29 +0000
commit59203c63bb777a3bacec32fb8830fba33540e809 (patch)
tree58298e711c0ff0575818c30485b44a2f21bf28a0 /js/src/builtin/temporal/TemporalFields.cpp
parentAdding upstream version 126.0.1. (diff)
downloadfirefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz
firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'js/src/builtin/temporal/TemporalFields.cpp')
-rw-r--r--js/src/builtin/temporal/TemporalFields.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/src/builtin/temporal/TemporalFields.cpp b/js/src/builtin/temporal/TemporalFields.cpp
index 9ac2e44639..72027123e7 100644
--- a/js/src/builtin/temporal/TemporalFields.cpp
+++ b/js/src/builtin/temporal/TemporalFields.cpp
@@ -214,7 +214,7 @@ static Value TemporalFieldDefaultValue(TemporalField field) {
static bool TemporalFieldConvertValue(JSContext* cx, TemporalField field,
MutableHandle<Value> value) {
- auto* name = ToCString(field);
+ const auto* name = ToCString(field);
switch (field) {
case TemporalField::Year:
case TemporalField::Hour:
@@ -365,7 +365,7 @@ bool js::temporal::PrepareTemporalFields(
Rooted<Value> value(cx);
for (auto fieldName : fieldNames) {
auto* property = ToPropertyName(cx, fieldName);
- auto* cstr = ToCString(fieldName);
+ const auto* cstr = ToCString(fieldName);
// Step 6.a. (Not applicable in our implementation.)
@@ -837,8 +837,8 @@ bool js::temporal::AppendSorted(
return false;
}
- auto* left = std::prev(fieldNames.end(), additionalNames.size());
- auto* right = additionalNames.end();
+ const auto* left = std::prev(fieldNames.end(), additionalNames.size());
+ const auto* right = additionalNames.end();
auto* out = fieldNames.end();
// Write backwards into the newly allocated space.