Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
catamorphism committed Oct 2, 2024
1 parent fe9f635 commit 2c4705a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion icu4c/source/i18n/messageformat2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ResolvedFunctionOption>(std::move(resolvedOpt), status));
LocalPointer<ResolvedFunctionOption>
p(create<ResolvedFunctionOption>(std::move(resolvedOpt), status));
EMPTY_ON_ERROR(status);
optionsVector->adoptElement(p.orphan(), status);
}
Expand Down
2 changes: 1 addition & 1 deletion icu4c/source/i18n/messageformat2_evaluation.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace message2 {

// InternalValue tracks a value along with, possibly, a function that needs
// to be applied to it in the future (once the value is required
// (by a .match or pattern));
// (by a .match or pattern, or another function));
// while FormattedPlaceholder tracks a value and how it was constructed in the
// past (by a function, or from a literal or argument).

Expand Down

0 comments on commit 2c4705a

Please sign in to comment.