ICU-22740 Add missing template arguments in MF2 parser

This fixes a clang-17 `-Wctad-maybe-unsupported` warning.
This commit is contained in:
Tim Chevalier 2024-04-18 12:09:34 -07:00 committed by Elango Cheran
parent ed52e0a25b
commit db0694e8ab

View file

@ -1523,7 +1523,7 @@ Expression Parser::parseExpression(UErrorCode& status) {
}
// Parse attributes
AttributeAdder attrAdder(exprBuilder);
AttributeAdder<Expression::Builder> attrAdder(exprBuilder);
parseAttributes(attrAdder, status);
// Parse optional space
@ -1985,7 +1985,7 @@ Markup Parser::parseMarkup(UErrorCode& status) {
// Parse the attributes, which also must begin
// with a ' '
if (inBounds(source, index) && isWhitespace(source[index])) {
AttributeAdder attrAdder(builder);
AttributeAdder<Markup::Builder> attrAdder(builder);
parseAttributes(attrAdder, status);
}