mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Removed some calls to trim() when getting the plugin and plugin manufacturer code
This commit is contained in:
parent
1a60fa9765
commit
e5ddf29bf9
2 changed files with 7 additions and 7 deletions
|
|
@ -1364,9 +1364,9 @@ public:
|
|||
XmlElement* audioComponentsDict = audioComponentsPlistEntry.createNewChildElement ("dict");
|
||||
|
||||
addPlistDictionaryKey (audioComponentsDict, "name", owner.project.getIAAPluginName());
|
||||
addPlistDictionaryKey (audioComponentsDict, "manufacturer", owner.project.getPluginManufacturerCodeString().trim().substring (0, 4));
|
||||
addPlistDictionaryKey (audioComponentsDict, "manufacturer", owner.project.getPluginManufacturerCodeString().substring (0, 4));
|
||||
addPlistDictionaryKey (audioComponentsDict, "type", owner.project.getIAATypeCode());
|
||||
addPlistDictionaryKey (audioComponentsDict, "subtype", owner.project.getPluginCodeString().trim().substring (0, 4));
|
||||
addPlistDictionaryKey (audioComponentsDict, "subtype", owner.project.getPluginCodeString().substring (0, 4));
|
||||
addPlistDictionaryKeyInt (audioComponentsDict, "version", owner.project.getVersionAsHexInteger());
|
||||
|
||||
dict->addChildElement (new XmlElement (audioComponentsPlistEntry));
|
||||
|
|
@ -1490,8 +1490,8 @@ public:
|
|||
XmlElement plistEntry ("array");
|
||||
XmlElement* dict = plistEntry.createNewChildElement ("dict");
|
||||
|
||||
auto pluginManufacturerCode = owner.project.getPluginManufacturerCodeString().trim().substring (0, 4);
|
||||
auto pluginSubType = owner.project.getPluginCodeString().trim().substring (0, 4);
|
||||
auto pluginManufacturerCode = owner.project.getPluginManufacturerCodeString().substring (0, 4);
|
||||
auto pluginSubType = owner.project.getPluginCodeString().substring (0, 4);
|
||||
|
||||
if (pluginManufacturerCode.toLowerCase() == pluginManufacturerCode)
|
||||
{
|
||||
|
|
@ -1540,9 +1540,9 @@ public:
|
|||
+ ": " + owner.project.getPluginNameString());
|
||||
addPlistDictionaryKey (componentDict, "description", owner.project.getPluginDescriptionString());
|
||||
addPlistDictionaryKey (componentDict, "factoryFunction",owner.project. getPluginAUExportPrefixString() + "FactoryAUv3");
|
||||
addPlistDictionaryKey (componentDict, "manufacturer", owner.project.getPluginManufacturerCodeString().trim().substring (0, 4));
|
||||
addPlistDictionaryKey (componentDict, "manufacturer", owner.project.getPluginManufacturerCodeString().substring (0, 4));
|
||||
addPlistDictionaryKey (componentDict, "type", owner.project.getAUMainTypeCode());
|
||||
addPlistDictionaryKey (componentDict, "subtype", owner.project.getPluginCodeString().trim().substring (0, 4));
|
||||
addPlistDictionaryKey (componentDict, "subtype", owner.project.getPluginCodeString().substring (0, 4));
|
||||
addPlistDictionaryKeyInt (componentDict, "version", owner.project.getVersionAsHexInteger());
|
||||
addPlistDictionaryKeyBool (componentDict, "sandboxSafe", true);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ namespace
|
|||
|
||||
inline String toCharLiteral (const String& v)
|
||||
{
|
||||
auto fourCharCode = v.trim().substring (0, 4);
|
||||
auto fourCharCode = v.substring (0, 4);
|
||||
uint32 hexRepresentation = 0;
|
||||
|
||||
for (int i = 0; i < 4; ++i)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue