diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index 161548e679..8b3df15fac 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -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); diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.cpp b/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.cpp index 84bbc532da..5543b2ee05 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.cpp +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectSaver.cpp @@ -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)