Hi
When using the UI editor in the Projucer, I see that components added now use std::unique_ptr instead of ScopedPointer.
Although I really like the simplicity of the ScopedPointer I guess you have your reasons for this change.
I have one problem though, when changing a old file and resaving it, the components are now std::unique_ptr, but the code generated by the Projucer access the components as “comp->setBounds(…” , should it not be “comp.get()->setBounds(…” ?
at least in Clion I get errors.
This is what Projucer outputs:
label.reset (new Label (“new label”,
TRANS(“BlaBla:”)));
addAndMakeVisible (label.get());
label->setFont (Font (18.00f, Font::plain).withTypefaceStyle (“Regular”));
label->setJustificationType (Justification::centredLeft);
label->setEditable (false, false, false);
label->setColour (Label::textColourId, Colours::white);
label->setColour (TextEditor::textColourId, Colours::black);
label->setColour (TextEditor::backgroundColourId, Colour (0x00000000));label->setBounds (0, 0, 184, 24);
Can’t see how that would work.
Projucer version 5.3.2