diff options
| author | Per Larsson <[email protected]> | 2022-01-22 11:11:34 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2022-01-22 11:11:34 +0100 |
| commit | aef9c292beae2245da35f60fa8c8bd9c52fd248f (patch) | |
| tree | 798c254a0a3c867b5bc79c676684de7d47de6cc9 /zencore/filesystem.cpp | |
| parent | Use ExtendablePathBuilders (diff) | |
| download | zen-aef9c292beae2245da35f60fa8c8bd9c52fd248f.tar.xz zen-aef9c292beae2245da35f60fa8c8bd9c52fd248f.zip | |
Format fix.
Diffstat (limited to 'zencore/filesystem.cpp')
| -rw-r--r-- | zencore/filesystem.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index bed08b3f5..ee49aa474 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -765,7 +765,7 @@ DiskSpace DiskSpaceInfo(std::filesystem::path Directory, std::error_code& Error) { using namespace std::filesystem; - + space_info SpaceInfo = space(Directory, Error); if (Error) { @@ -940,7 +940,7 @@ PathFromHandle(void* NativeHandle) Link[BytesRead] = '\0'; return Link; #elif ZEN_PLATFORM_MAC - int Fd = int(uintptr_t(NativeHandle)); + int Fd = int(uintptr_t(NativeHandle)); char Path[MAXPATHLEN]; if (fcntl(Fd, F_GETPATH, Path) < 0) { @@ -968,10 +968,10 @@ GetRunningExecutablePath() Link[BytesRead] = '\0'; return Link; #elif ZEN_PLATFORM_MAC - char Buffer[PROC_PIDPATHINFO_MAXSIZE]; + char Buffer[PROC_PIDPATHINFO_MAXSIZE]; int SelfPid = GetCurrentProcessId(); - if (proc_pidpath(SelfPid, Buffer, sizeof(Buffer)) <= 0) + if (proc_pidpath(SelfPid, Buffer, sizeof(Buffer)) <= 0) return {}; return Buffer; @@ -1100,7 +1100,7 @@ TEST_CASE("DiskSpaceInfo") CHECK(Okay); CHECK(int64_t(Space.Total) > 0); - CHECK(int64_t(Space.Free) > 0); // Hopefully there's at least one byte free + CHECK(int64_t(Space.Free) > 0); // Hopefully there's at least one byte free } TEST_CASE("PathBuilder") |