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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user