mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
Removed a few more uses of String::empty.
This commit is contained in:
parent
2623f4d1e1
commit
2edec00b55
46 changed files with 91 additions and 91 deletions
|
|
@ -136,7 +136,7 @@ namespace AudioUnitFormatHelpers
|
|||
fileOrIdentifier.lastIndexOfChar ('/')) + 1));
|
||||
|
||||
StringArray tokens;
|
||||
tokens.addTokens (s, ",", String::empty);
|
||||
tokens.addTokens (s, ",", String());
|
||||
tokens.removeEmptyStrings();
|
||||
|
||||
if (tokens.size() == 3)
|
||||
|
|
@ -570,7 +570,7 @@ public:
|
|||
if (isPositiveAndBelow (index, getNumInputChannels()))
|
||||
return "Input " + String (index + 1);
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
const String getOutputChannelName (int index) const override
|
||||
|
|
@ -578,7 +578,7 @@ public:
|
|||
if (isPositiveAndBelow (index, getNumOutputChannels()))
|
||||
return "Output " + String (index + 1);
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
bool isInputChannelStereoPair (int index) const override { return isPositiveAndBelow (index, getNumInputChannels()); }
|
||||
|
|
@ -652,7 +652,7 @@ public:
|
|||
if (const ParamInfo* p = parameters[index])
|
||||
return p->name;
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
const String getParameterText (int index) override { return String (getParameter (index)); }
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ public:
|
|||
desc.lastFileModTime = module->file.getLastModificationTime();
|
||||
desc.pluginFormatName = "LADSPA";
|
||||
desc.category = getCategory();
|
||||
desc.manufacturerName = plugin != nullptr ? String (plugin->Maker) : String::empty;
|
||||
desc.manufacturerName = plugin != nullptr ? String (plugin->Maker) : String();
|
||||
desc.version = getVersion();
|
||||
desc.numInputChannels = getNumInputChannels();
|
||||
desc.numOutputChannels = getNumOutputChannels();
|
||||
|
|
@ -338,7 +338,7 @@ public:
|
|||
if (isPositiveAndBelow (index, getNumInputChannels()))
|
||||
return String (plugin->PortNames [inputs [index]]).trim();
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
const String getOutputChannelName (const int index) const
|
||||
|
|
@ -346,7 +346,7 @@ public:
|
|||
if (isPositiveAndBelow (index, getNumInputChannels()))
|
||||
return String (plugin->PortNames [outputs [index]]).trim();
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -390,7 +390,7 @@ public:
|
|||
return String (plugin->PortNames [parameters [index]]).trim();
|
||||
}
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
const String getParameterText (int index)
|
||||
|
|
@ -407,7 +407,7 @@ public:
|
|||
return String (parameterValues[index].scaled, 4);
|
||||
}
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -424,7 +424,7 @@ public:
|
|||
const String getProgramName (int index)
|
||||
{
|
||||
// XXX
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
void changeProgramName (int index, const String& newName)
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ void AudioProcessor::updateHostDisplay()
|
|||
l->audioProcessorChanged (this);
|
||||
}
|
||||
|
||||
String AudioProcessor::getParameterLabel (int) const { return String::empty; }
|
||||
String AudioProcessor::getParameterLabel (int) const { return String(); }
|
||||
bool AudioProcessor::isParameterAutomatable (int) const { return true; }
|
||||
bool AudioProcessor::isMetaParameter (int) const { return false; }
|
||||
|
||||
|
|
@ -266,7 +266,7 @@ void AudioProcessor::copyXmlToBinary (const XmlElement& xml, juce::MemoryBlock&
|
|||
MemoryOutputStream out (destData, false);
|
||||
out.writeInt (magicXmlNumber);
|
||||
out.writeInt (0);
|
||||
xml.writeToStream (out, String::empty, true, false);
|
||||
xml.writeToStream (out, String(), true, false);
|
||||
out.writeByte (0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1367,7 +1367,7 @@ const String AudioProcessorGraph::AudioGraphIOProcessor::getName() const
|
|||
default: break;
|
||||
}
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::fillInPluginDescription (PluginDescription& d) const
|
||||
|
|
@ -1469,7 +1469,7 @@ const String AudioProcessorGraph::AudioGraphIOProcessor::getInputChannelName (in
|
|||
default: break;
|
||||
}
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
const String AudioProcessorGraph::AudioGraphIOProcessor::getOutputChannelName (int channelIndex) const
|
||||
|
|
@ -1481,7 +1481,7 @@ const String AudioProcessorGraph::AudioGraphIOProcessor::getOutputChannelName (i
|
|||
default: break;
|
||||
}
|
||||
|
||||
return String::empty;
|
||||
return String();
|
||||
}
|
||||
|
||||
bool AudioProcessorGraph::AudioGraphIOProcessor::isInputChannelStereoPair (int /*index*/) const
|
||||
|
|
@ -1501,17 +1501,17 @@ bool AudioProcessorGraph::AudioGraphIOProcessor::hasEditor() const
|
|||
AudioProcessorEditor* AudioProcessorGraph::AudioGraphIOProcessor::createEditor() { return nullptr; }
|
||||
|
||||
int AudioProcessorGraph::AudioGraphIOProcessor::getNumParameters() { return 0; }
|
||||
const String AudioProcessorGraph::AudioGraphIOProcessor::getParameterName (int) { return String::empty; }
|
||||
const String AudioProcessorGraph::AudioGraphIOProcessor::getParameterName (int) { return String(); }
|
||||
|
||||
float AudioProcessorGraph::AudioGraphIOProcessor::getParameter (int) { return 0.0f; }
|
||||
const String AudioProcessorGraph::AudioGraphIOProcessor::getParameterText (int) { return String::empty; }
|
||||
const String AudioProcessorGraph::AudioGraphIOProcessor::getParameterText (int) { return String(); }
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::setParameter (int, float) { }
|
||||
|
||||
int AudioProcessorGraph::AudioGraphIOProcessor::getNumPrograms() { return 0; }
|
||||
int AudioProcessorGraph::AudioGraphIOProcessor::getCurrentProgram() { return 0; }
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::setCurrentProgram (int) { }
|
||||
|
||||
const String AudioProcessorGraph::AudioGraphIOProcessor::getProgramName (int) { return String::empty; }
|
||||
const String AudioProcessorGraph::AudioGraphIOProcessor::getProgramName (int) { return String(); }
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::changeProgramName (int, const String&) {}
|
||||
|
||||
void AudioProcessorGraph::AudioGraphIOProcessor::getStateInformation (juce::MemoryBlock&) {}
|
||||
|
|
|
|||
|
|
@ -372,15 +372,15 @@ public:
|
|||
AudioProcessorEditor* createEditor() { return nullptr; }
|
||||
|
||||
int getNumParameters() { return 0; }
|
||||
const String getParameterName (int) { return String::empty; }
|
||||
const String getParameterName (int) { return String(); }
|
||||
float getParameter (int) { return 0; }
|
||||
const String getParameterText (int) { return String::empty; }
|
||||
const String getParameterText (int) { return String(); }
|
||||
void setParameter (int, float) { }
|
||||
|
||||
int getNumPrograms() { return 0; }
|
||||
int getCurrentProgram() { return 0; }
|
||||
void setCurrentProgram (int) { }
|
||||
const String getProgramName (int) { return String::empty; }
|
||||
const String getProgramName (int) { return String(); }
|
||||
void changeProgramName (int, const String&) { }
|
||||
|
||||
void getStateInformation (juce::MemoryBlock&);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue