diff --git a/source/modules/water/files/File.cpp b/source/modules/water/files/File.cpp index abeca70ce4..0e6eee26ea 100644 --- a/source/modules/water/files/File.cpp +++ b/source/modules/water/files/File.cpp @@ -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: