1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Widnows: Fixed deprecated use of File::separator

This commit is contained in:
hogliux 2017-10-11 12:23:50 +01:00
parent 88f8fbc128
commit 9b386b86ec

View file

@ -120,9 +120,9 @@ String File::parseAbsolutePath (const String& p)
// Windows..
auto path = removeEllipsis (p.replaceCharacter ('/', '\\'));
if (path.startsWithChar (separator))
if (path.startsWithChar (getSeparatorChar()))
{
if (path[1] != separator)
if (path[1] != getSeparatorChar())
{
/* When you supply a raw string to the File object constructor, it must be an absolute path.
If you're trying to parse a string that may be either a relative path or an absolute path,