1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-17 00:44:19 +00:00

ShapedText: Refactor Impl constructor

This commit is contained in:
reuk 2024-09-05 15:56:39 +01:00
parent 2bdf510f49
commit ee8d310e69
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -106,9 +106,7 @@ class ShapedText::Impl
public:
Impl (String textIn, Options optionsIn)
: options { std::move (optionsIn) },
text { std::move (textIn) },
simpleShapedText { &text, options },
justifiedText { simpleShapedText, options }
text { std::move (textIn) }
{
}
@ -145,8 +143,8 @@ public:
private:
ShapedTextOptions options;
String text;
SimpleShapedText simpleShapedText;
JustifiedText justifiedText;
SimpleShapedText simpleShapedText { &text, options };
JustifiedText justifiedText { simpleShapedText, options };
};
ShapedText::ShapedText() : ShapedText ("", {})