@@ -1023,7 +1023,7 @@ struct DateTimePatternGenerator::AvailableFormatsSink : public ResourceSink {
|
1023 | 1023 | AvailableFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {} |
1024 | 1024 | virtual ~AvailableFormatsSink(); |
1025 | 1025 | |
1026 | | -virtual void put(const char *key, ResourceValue &value, UBool isRoot, |
| 1026 | +virtual void put(const char *key, ResourceValue &value, UBool /*isRoot*/, |
1027 | 1027 | UErrorCode &errorCode) override { |
1028 | 1028 | const UnicodeString formatKey(key, -1, US_INV); |
1029 | 1029 | if (!dtpg.isAvailableFormatSet(formatKey) ) { |
@@ -1032,7 +1032,7 @@ struct DateTimePatternGenerator::AvailableFormatsSink : public ResourceSink {
|
1032 | 1032 | // derived from std patterns, but not a previous availableFormats entry: |
1033 | 1033 | const UnicodeString& formatValue = value.getUnicodeString(errorCode); |
1034 | 1034 | conflictingPattern.remove(); |
1035 | | - dtpg.addPatternWithSkeleton(formatValue, &formatKey, !isRoot, conflictingPattern, errorCode); |
| 1035 | + dtpg.addPatternWithSkeleton(formatValue, &formatKey, true, conflictingPattern, errorCode); |
1036 | 1036 | } |
1037 | 1037 | } |
1038 | 1038 | }; |
|