We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec8a7a4 commit 77c251bCopy full SHA for 77c251b
src/mbgl/text/tagged_string.hpp
@@ -72,8 +72,9 @@ struct SectionOptions {
72
struct TaggedString {
73
TaggedString() = default;
74
75
- TaggedString(std::u16string text_, SectionOptions options)
76
- : styledText(std::move(text_), std::vector<uint8_t>(text_.size(), 0)) {
+ TaggedString(std::u16string text_, SectionOptions options) {
+ auto size = text_.size();
77
+ styledText = {std::move(text_), std::vector<uint8_t>(size, 0)};
78
sections.push_back(std::move(options));
79
}
80
0 commit comments