1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-28 09:14:58 +01:00

Update code formatting for clang-format 19

This commit is contained in:
Michał Janiszewski
2024-12-09 23:25:40 +01:00
parent 78984e8efe
commit 6a04aaf2fa
5 changed files with 6 additions and 14 deletions

View File

@@ -169,9 +169,7 @@ namespace OpenRCT2::Platform
uint64_t GetLastModified(std::string_view path)
{
uint64_t lastModified = 0;
struct stat statInfo
{
};
struct stat statInfo{};
if (stat(std::string(path).c_str(), &statInfo) == 0)
{
lastModified = statInfo.st_mtime;
@@ -182,9 +180,7 @@ namespace OpenRCT2::Platform
uint64_t GetFileSize(std::string_view path)
{
uint64_t size = 0;
struct stat statInfo
{
};
struct stat statInfo{};
if (stat(std::string(path).c_str(), &statInfo) == 0)
{
size = statInfo.st_size;