Build fixes for Juce 6

This commit is contained in:
xenakios
2020-12-11 04:02:36 +02:00
parent 8bfd8557b7
commit 7d9ed352a1
4 changed files with 21 additions and 5 deletions

View File

@ -73,7 +73,7 @@ void EnvelopeComponent::paint(Graphics& g)
g.drawText("No envelope set", 10, 10, getWidth(), getHeight(), Justification::centred);
return;
}
if (m_envelope.unique() == true)
if (m_envelope.use_count() == 1)
{
g.drawText("Envelope is orphaned (may be a bug)", 10, 10, getWidth(), getHeight(), Justification::centred);
return;