[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2024-12-09 22:06:48 +00:00
committed by Chris Hennes
parent b0b843e34b
commit 9caa6d2c7b
2 changed files with 5 additions and 13 deletions

View File

@@ -431,9 +431,7 @@ bool FileInfo::isDir() const
return ((st.st_mode & _S_IFDIR) != 0);
#elif defined(FC_OS_LINUX) || defined(FC_OS_CYGWIN) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
struct stat st
{
};
struct stat st {};
if (stat(FileName.c_str(), &st) != 0) {
return false;
}
@@ -463,9 +461,7 @@ unsigned int FileInfo::size() const
}
#elif defined(FC_OS_LINUX) || defined(FC_OS_CYGWIN) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
struct stat st
{
};
struct stat st {};
if (stat(FileName.c_str(), &st) == 0) {
bytes = st.st_size;
}
@@ -487,9 +483,7 @@ TimeInfo FileInfo::lastModified() const
}
#elif defined(FC_OS_LINUX) || defined(FC_OS_CYGWIN) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
struct stat st
{
};
struct stat st {};
if (stat(FileName.c_str(), &st) == 0) {
ti.setTime_t(st.st_mtime);
}
@@ -511,9 +505,7 @@ TimeInfo FileInfo::lastRead() const
}
#elif defined(FC_OS_LINUX) || defined(FC_OS_CYGWIN) || defined(FC_OS_MACOSX) || defined(FC_OS_BSD)
struct stat st
{
};
struct stat st {};
if (stat(FileName.c_str(), &st) == 0) {
ti.setTime_t(st.st_atime);
}

View File

@@ -150,7 +150,7 @@ void PathSegmentWalker::walk(PathSegmentVisitor& cb, const Base::Vector3d& start
bool absolutecenter = false;
// for mapping the coordinates to XY plane
double Base::Vector3d::*pz = &Base::Vector3d::z;
double Base::Vector3d::* pz = &Base::Vector3d::z;
cb.setup(last);