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:
parent
2bdf510f49
commit
ee8d310e69
1 changed files with 3 additions and 5 deletions
|
|
@ -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 ("", {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue