diff --git a/icu4c/source/i18n/messageformat2.cpp b/icu4c/source/i18n/messageformat2.cpp index b56b5e281d1f..30ab1b28457b 100644 --- a/icu4c/source/i18n/messageformat2.cpp +++ b/icu4c/source/i18n/messageformat2.cpp @@ -135,7 +135,8 @@ FunctionOptions MessageFormatter::resolveOptions(const Environment& env, const O // The option is resolved; add it to the vector ResolvedFunctionOption resolvedOpt(k, std::move(optVal), status); - LocalPointer p(create(std::move(resolvedOpt), status)); + LocalPointer + p(create(std::move(resolvedOpt), status)); EMPTY_ON_ERROR(status); optionsVector->adoptElement(p.orphan(), status); }