From 22d03229ae998c0387f5aea9f5c9720baff65115 Mon Sep 17 00:00:00 2001 From: Reece Date: Mon, 5 Jul 2021 14:33:05 +0100 Subject: [PATCH] [*] Untabify paths.cpp --- Source/Process/Paths.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Process/Paths.cpp b/Source/Process/Paths.cpp index bf89afa9..0875d00a 100644 --- a/Source/Process/Paths.cpp +++ b/Source/Process/Paths.cpp @@ -103,23 +103,23 @@ namespace Aurora::Process } return false; - + #elif defined(AURORA_PLATFORM_APPLE) || defined(AURORA_PLATFORM_IOS) - CFURLRef bundleURL = CFBundleCopyExecutableURL(CFBundleGetMainBundle()); - CFStringRef pathRef = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle); + CFURLRef bundleURL = CFBundleCopyExecutableURL(CFBundleGetMainBundle()); + CFStringRef pathRef = CFURLCopyFileSystemPath(bundleURL, kCFURLPOSIXPathStyle); auto utf16length = CFStringGetLength(pathRef); auto maxUtf8len = CFStringGetMaximumSizeForEncoding(utf16length, kCFStringEncodingUTF8); path.resize(maxUtf8len); - if (!CFStringGetCString(pathRef, path.data(), maxUtf8len, kCFStringEncodingUTF8)) + if (!CFStringGetCString(pathRef, path.data(), maxUtf8len, kCFStringEncodingUTF8)) { path.clear(); return false; } - + path.resize(std::strlen(path.c_str())); splitter = '\\';