Codechange: initialize all values of ICURun on construction (#10892)

(cherry picked from commit 0302e6f168)
This commit is contained in:
Patric Stout
2023-05-30 21:17:30 +02:00
committed by Jonathan G Rennison
parent 391b80d59a
commit 19a6846cb6

View File

@@ -48,7 +48,7 @@ public:
std::vector<int> advance; ///< The advance (width) of the glyphs. Valid after Shape() is called. std::vector<int> advance; ///< The advance (width) of the glyphs. Valid after Shape() is called.
std::vector<int> glyph_to_char; ///< The mapping from glyphs to characters. Valid after Shape() is called. std::vector<int> glyph_to_char; ///< The mapping from glyphs to characters. Valid after Shape() is called.
std::vector<float> positions; ///< The positions of the glyphs. Valid after Shape() is called. std::vector<float> positions; ///< The positions of the glyphs. Valid after Shape() is called.
int total_advance; ///< The total advance of the run. Valid after Shape() is called. int total_advance = 0; ///< The total advance of the run. Valid after Shape() is called.
ICURun(int start, int length, UBiDiLevel level, UScriptCode script = USCRIPT_UNKNOWN, Font *font = nullptr) : start(start), length(length), level(level), script(script), font(font) {} ICURun(int start, int length, UBiDiLevel level, UScriptCode script = USCRIPT_UNKNOWN, Font *font = nullptr) : start(start), length(length), level(level), script(script), font(font) {}