Browse Source

Fix macOS build

Signed-off-by: falkTX <falktx@falktx.com>
pull/1898/head
falkTX 5 months ago
parent
commit
95ad25d81d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/modules/water/files/File.cpp

+ 2
- 2
source/modules/water/files/File.cpp View File

@@ -1450,7 +1450,7 @@ bool File::isSymbolicLink() const
File File::getLinkedTarget() const
{
if (NSString* dest = getFileLink (fullPath))
return getSiblingFile (nsStringToWater (dest));
return getSiblingFile ([dest UTF8String]);
return *this;
}
@@ -1482,7 +1482,7 @@ File File::getSpecialLocation (const SpecialLocationType type)
switch (type)
{
case userHomeDirectory:
resultPath = nsStringToWater (NSHomeDirectory());
resultPath = [NSHomeDirectory() UTF8String];
break;
case tempDirectory:


Loading…
Cancel
Save