Coding - Clang-Tidy apply with refactoring (#965)

- Replacing empty constructor/destructor implementations with `= default`
- Removing redundant `virtual` keywords from override methods
- Replacing `NULL` and `0` with `nullptr`
- Replacing C headers with C++ equivalents (`<cstdio>`, `<cstring>`, etc.)
- Marking copy constructors/assignment operators as `= delete` for non-copyable classes
- Converting `void` parameter lists to empty parameter lists
- Replacing integer literals with appropriate boolean values
This commit is contained in:
Pasukhin Dmitry
2025-12-29 11:55:04 +00:00
committed by GitHub
parent 14d4e91171
commit c020fc2fad
4823 changed files with 15722 additions and 16541 deletions

View File

@@ -25,7 +25,7 @@
//! Save shape to file
const char* BRepTools_Write(const char* theFileStr, void* theShapePtr)
{
if (theFileStr == 0 || theShapePtr == 0)
if (theFileStr == nullptr || theShapePtr == nullptr)
{
return "Error: name or shape is null";
}
@@ -46,7 +46,7 @@ const char* BRepTools_Write(const char* theFileStr, void* theShapePtr)
//! Dump shape to cout
const char* BRepTools_Dump(void* theShapePtr)
{
if (theShapePtr == 0)
if (theShapePtr == nullptr)
{
return "Error: name or shape is null";
}
@@ -69,7 +69,7 @@ const char* BRepTools_Dump(void* theShapePtr)
//! Dump shape location to cout
const char* BRepTools_DumpLoc(void* theLocationPtr)
{
if (theLocationPtr == 0)
if (theLocationPtr == nullptr)
{
return "Error: name or shape is null";
}