1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Deprecated File::separator and File::separatorString, replacing them by static getter functions, so that File methods can be safely used in static constructors without order-of-initialisation problems

This commit is contained in:
jules 2017-10-10 11:33:55 +01:00
parent 15871dd890
commit 2ee168ad46
8 changed files with 64 additions and 48 deletions

View file

@ -565,14 +565,14 @@ void LibraryModule::findAndAddCompiledUnits (ProjectExporter& exporter,
static void addFileWithGroups (Project::Item& group, const RelativePath& file, const String& path)
{
const int slash = path.indexOfChar (File::separator);
auto slash = path.indexOfChar (File::getSeparatorChar());
if (slash >= 0)
{
const String topLevelGroup (path.substring (0, slash));
const String remainingPath (path.substring (slash + 1));
auto topLevelGroup = path.substring (0, slash);
auto remainingPath = path.substring (slash + 1);
Project::Item newGroup (group.getOrCreateSubGroup (topLevelGroup));
auto newGroup = group.getOrCreateSubGroup (topLevelGroup);
addFileWithGroups (newGroup, file, remainingPath);
}
else