'getlabel' is a private member


#1

Hey all,

I took a break from JUCEing for a while, and am now looking to bring a project I was working on in early 2017 to current JUCE standards.

When trying to compile I’m getting the following error:

Blockquote
‘getLabel’ is a private member of ‘juce::AudioProcessorParameterWithID’

However, poking around the documentation here it still says that getLabel is public-
https://docs.juce.com/master/classAudioProcessorParameter.html

What am I doing wrong? Here’s a small screenshot of my code:


#2

AudioProcessorParameterWithID moves getLabel() into the private section of the class. However, AudioProcessorParameterWithID also has a public member variable const String label; which I assume has the same label as you would get with getLabel.


#3

Ah okay, thanks! just changing ->getLabel() to ->label did the trick.