mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fixed some compiler warnings
This commit is contained in:
parent
12b0a90c55
commit
b59fa68724
5 changed files with 21 additions and 21 deletions
|
|
@ -32,24 +32,24 @@ AudioProcessorValueTreeState::Parameter::Parameter (const String& parameterID,
|
|||
const String& parameterName,
|
||||
const String& labelText,
|
||||
NormalisableRange<float> valueRange,
|
||||
float defaultValue,
|
||||
float defaultParameterValue,
|
||||
std::function<String(float)> valueToTextFunction,
|
||||
std::function<float(const String&)> textToValueFunction,
|
||||
bool isMetaParameter,
|
||||
bool isAutomatableParameter,
|
||||
bool isDiscrete,
|
||||
AudioProcessorParameter::Category category,
|
||||
AudioProcessorParameter::Category parameterCategory,
|
||||
bool isBoolean)
|
||||
: AudioParameterFloat (parameterID,
|
||||
parameterName,
|
||||
valueRange,
|
||||
defaultValue,
|
||||
defaultParameterValue,
|
||||
labelText,
|
||||
category,
|
||||
parameterCategory,
|
||||
valueToTextFunction == nullptr ? std::function<String(float v, int)>()
|
||||
: [valueToTextFunction](float v, int) { return valueToTextFunction (v); },
|
||||
std::move (textToValueFunction)),
|
||||
unsnappedDefault (valueRange.convertTo0to1 (defaultValue)),
|
||||
unsnappedDefault (valueRange.convertTo0to1 (defaultParameterValue)),
|
||||
metaParameter (isMetaParameter),
|
||||
automatable (isAutomatableParameter),
|
||||
discrete (isDiscrete),
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@ namespace juce
|
|||
{
|
||||
|
||||
RangedAudioParameter::RangedAudioParameter (const String& parameterID,
|
||||
const String& name,
|
||||
const String& label,
|
||||
Category category)
|
||||
: AudioProcessorParameterWithID (parameterID, name, label, category)
|
||||
const String& parameterName,
|
||||
const String& parameterLabel,
|
||||
Category parameterCategory)
|
||||
: AudioProcessorParameterWithID (parameterID, parameterName, parameterLabel, parameterCategory)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -198,9 +198,9 @@ private:
|
|||
//==============================================================================
|
||||
struct NamedPipeThread : public Thread
|
||||
{
|
||||
NamedPipeThread (const String& threadName, const String& pName,
|
||||
NamedPipeThread (const String& tName, const String& pName,
|
||||
bool shouldCreatePipe, WaitableEvent& completed)
|
||||
: Thread (threadName), pipeName (pName), workCompleted (completed)
|
||||
: Thread (tName), pipeName (pName), workCompleted (completed)
|
||||
{
|
||||
if (shouldCreatePipe)
|
||||
pipe.createNewPipe (pipeName);
|
||||
|
|
|
|||
|
|
@ -95,8 +95,8 @@ FileChooserDialogBox::FileChooserDialogBox (const String& name,
|
|||
FileBrowserComponent& chooserComponent,
|
||||
bool shouldWarn,
|
||||
Colour backgroundColour,
|
||||
Component* parentComponent)
|
||||
: ResizableWindow (name, backgroundColour, parentComponent == nullptr),
|
||||
Component* parentComp)
|
||||
: ResizableWindow (name, backgroundColour, parentComp == nullptr),
|
||||
warnAboutOverwritingExistingFiles (shouldWarn)
|
||||
{
|
||||
content = new ContentComponent (name, instructions, chooserComponent);
|
||||
|
|
@ -113,8 +113,8 @@ FileChooserDialogBox::FileChooserDialogBox (const String& name,
|
|||
|
||||
FileChooserDialogBox::selectionChanged();
|
||||
|
||||
if (parentComponent != nullptr)
|
||||
parentComponent->addAndMakeVisible (this);
|
||||
if (parentComp != nullptr)
|
||||
parentComp->addAndMakeVisible (this);
|
||||
}
|
||||
|
||||
FileChooserDialogBox::~FileChooserDialogBox()
|
||||
|
|
|
|||
|
|
@ -526,33 +526,33 @@ private:
|
|||
//==============================================================================
|
||||
void callListeners (const OSCBundle::Element& content)
|
||||
{
|
||||
using Listener = OSCReceiver::Listener<OSCReceiver::MessageLoopCallback>;
|
||||
using OSCListener = OSCReceiver::Listener<OSCReceiver::MessageLoopCallback>;
|
||||
|
||||
if (content.isMessage())
|
||||
{
|
||||
auto&& message = content.getMessage();
|
||||
listeners.call ([&] (Listener& l) { l.oscMessageReceived (message); });
|
||||
listeners.call ([&] (OSCListener& l) { l.oscMessageReceived (message); });
|
||||
}
|
||||
else if (content.isBundle())
|
||||
{
|
||||
auto&& bundle = content.getBundle();
|
||||
listeners.call ([&] (Listener& l) { l.oscBundleReceived (bundle); });
|
||||
listeners.call ([&] (OSCListener& l) { l.oscBundleReceived (bundle); });
|
||||
}
|
||||
}
|
||||
|
||||
void callRealtimeListeners (const OSCBundle::Element& content)
|
||||
{
|
||||
using Listener = OSCReceiver::Listener<OSCReceiver::RealtimeCallback>;
|
||||
using OSCListener = OSCReceiver::Listener<OSCReceiver::RealtimeCallback>;
|
||||
|
||||
if (content.isMessage())
|
||||
{
|
||||
auto&& message = content.getMessage();
|
||||
realtimeListeners.call ([&] (Listener& l) { l.oscMessageReceived (message); });
|
||||
realtimeListeners.call ([&] (OSCListener& l) { l.oscMessageReceived (message); });
|
||||
}
|
||||
else if (content.isBundle())
|
||||
{
|
||||
auto&& bundle = content.getBundle();
|
||||
realtimeListeners.call ([&] (Listener& l) { l.oscBundleReceived (bundle); });
|
||||
realtimeListeners.call ([&] (OSCListener& l) { l.oscBundleReceived (bundle); });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue