fix cppcoreguidelines-*
* cppcoreguidelines-init-variables * cppcoreguidelines-c-copy-assignment-signature * cppcoreguidelines-macro-usage * cppcoreguidelines-non-private-member-variables-in-classes * cppcoreguidelines-pro-type-member-init * cppcoreguidelines-slicing * cppcoreguidelines-special-member-functions * cppcoreguidelines-virtual-class-destructor
This commit is contained in:
@@ -401,7 +401,9 @@ bool FileInfo::isFile() const
|
||||
}
|
||||
return ok;
|
||||
#else
|
||||
struct stat st;
|
||||
// clang-format off
|
||||
struct stat st {};
|
||||
// clang-format on
|
||||
if (stat(FileName.c_str(), &st) != 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user