Skip to content

Commit

Permalink
Fix macOS build
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed May 23, 2024
1 parent ad3b779 commit 95ad25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/modules/water/files/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -1482,7 +1482,7 @@ File File::getSpecialLocation (const SpecialLocationType type)
switch (type)
{
case userHomeDirectory:
resultPath = nsStringToWater (NSHomeDirectory());
resultPath = [NSHomeDirectory() UTF8String];
break;

case tempDirectory:
Expand Down

0 comments on commit 95ad25d

Please sign in to comment.