Merge pull request #18405 from FreeCAD/pre-commit-ci-update-config

[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
Chris Hennes
2024-12-13 11:52:03 -05:00
committed by GitHub
3 changed files with 6 additions and 14 deletions

View File

@@ -67,6 +67,6 @@ repos:
- id: black
args: ['--line-length', '100']
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 7d85583be209cb547946c82fbe51f4bc5dd1d017 # frozen: v18.1.8
rev: fed9a1f62c22af0bc846a260ebfeb0844368fd93 # frozen: v19.1.4
hooks:
- id: clang-format

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);