mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-07 13:47:37 +08:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user