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:
parent
88f8fbc128
commit
9b386b86ec
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue