◐ Shell
clean mode source ↗

deps: update icu to 74.2 · nodejs/node@f9b229e

Original file line numberDiff line numberDiff line change

@@ -1023,7 +1023,7 @@ struct DateTimePatternGenerator::AvailableFormatsSink : public ResourceSink {

10231023

AvailableFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {}

10241024

virtual ~AvailableFormatsSink();

10251025
1026-

virtual void put(const char *key, ResourceValue &value, UBool isRoot,

1026+

virtual void put(const char *key, ResourceValue &value, UBool /*isRoot*/,

10271027

UErrorCode &errorCode) override {

10281028

const UnicodeString formatKey(key, -1, US_INV);

10291029

if (!dtpg.isAvailableFormatSet(formatKey) ) {

@@ -1032,7 +1032,7 @@ struct DateTimePatternGenerator::AvailableFormatsSink : public ResourceSink {

10321032

// derived from std patterns, but not a previous availableFormats entry:

10331033

const UnicodeString& formatValue = value.getUnicodeString(errorCode);

10341034

conflictingPattern.remove();

1035-

dtpg.addPatternWithSkeleton(formatValue, &formatKey, !isRoot, conflictingPattern, errorCode);

1035+

dtpg.addPatternWithSkeleton(formatValue, &formatKey, true, conflictingPattern, errorCode);

10361036

}

10371037

}

10381038

};