Codechange: Use unique_ptr instead of raw pointer for string layouts. (#13128)

This commit is contained in:
2024-11-27 23:38:57 +00:00
committed by GitHub
parent cf7710fb61
commit fe0afef36f
9 changed files with 15 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ public:
/** Helper for GetLayouter, to get whether the layouter supports RTL. */
static const bool SUPPORTS_RTL = false;
static ParagraphLayouter *GetParagraphLayout(char32_t *buff, char32_t *buff_end, FontMap &fontMapping);
static std::unique_ptr<ParagraphLayouter> GetParagraphLayout(char32_t *buff, char32_t *buff_end, FontMap &fontMapping);
static size_t AppendToBuffer(char32_t *buff, const char32_t *buffer_last, char32_t c);
};