Change: Use std::make_unique instead of passing new() (#12539)

This commit is contained in:
Peter Nelson
2024-04-20 11:20:49 +01:00
committed by GitHub
parent fc7f184dbd
commit a1a01e21cf
6 changed files with 7 additions and 6 deletions

View File

@@ -489,7 +489,7 @@ std::unique_ptr<const ICUParagraphLayout::Line> ICUParagraphLayout::NextLine(int
ubidi_reorderVisual(bidi_level.data(), bidi_level.size(), vis_to_log.data());
/* Create line. */
std::unique_ptr<ICULine> line(new ICULine());
std::unique_ptr<ICULine> line = std::make_unique<ICULine>();
int cur_pos = 0;
for (auto &i : vis_to_log) {