JUCE4: AudioProcessor non-const methods!?


#1

Is there any reason why

virtual int getNumPrograms() = 0;
virtual int getCurrentProgram() = 0;
virtual const String getProgramName (int index) = 0;
virtual void getStateInformation (juce::MemoryBlock& destData) = 0;

are not marked const? (There are probably way more missing it across the entire framework).

On the other hand, does returning a const String make any sense? Wouldn’t it be more appropriate to either return a const String& or a String?