mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-05 20:27:38 +08:00
Coding - Revert type definitions for Standard_CString replacements (#1021)
Fix the replacement issue when Standard_CString was replaced to const char* even when it was const. Now "const Standard_CString" is replaced with "const char* const". Only places which were before const Standard_CString is replaced.
This commit is contained in:
@@ -635,7 +635,7 @@ void BRepTools::Read(TopoDS_Shape& Sh,
|
||||
//=================================================================================================
|
||||
|
||||
bool BRepTools::Write(const TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const bool theWithTriangles,
|
||||
const bool theWithNormals,
|
||||
const TopTools_FormatVersion theVersion,
|
||||
@@ -677,7 +677,7 @@ bool BRepTools::Write(const TopoDS_Shape& theShape,
|
||||
//=================================================================================================
|
||||
|
||||
bool BRepTools::Read(TopoDS_Shape& Sh,
|
||||
const char* File,
|
||||
const char* const File,
|
||||
const BRep_Builder& B,
|
||||
const Message_ProgressRange& theProgress)
|
||||
{
|
||||
|
||||
@@ -321,7 +321,7 @@ public:
|
||||
//! @param[in] theFile the path to file to output shape into
|
||||
//! @param theProgress the range of progress indicator to fill in
|
||||
static bool Write(const TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange())
|
||||
{
|
||||
return Write(theShape, theFile, true, false, TopTools_FormatVersion_CURRENT, theProgress);
|
||||
@@ -340,7 +340,7 @@ public:
|
||||
//! @param theProgress the range of progress indicator to fill in
|
||||
Standard_EXPORT static bool Write(
|
||||
const TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const bool theWithTriangles,
|
||||
const bool theWithNormals,
|
||||
const TopTools_FormatVersion theVersion,
|
||||
@@ -350,7 +350,7 @@ public:
|
||||
//! <B> is used to build the shape.
|
||||
Standard_EXPORT static bool Read(
|
||||
TopoDS_Shape& Sh,
|
||||
const char* File,
|
||||
const char* const File,
|
||||
const BRep_Builder& B,
|
||||
const Message_ProgressRange& theProgress = Message_ProgressRange());
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ void BinTools::Read(TopoDS_Shape& theShape,
|
||||
//=================================================================================================
|
||||
|
||||
bool BinTools::Write(const TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const bool theWithTriangles,
|
||||
const bool theWithNormals,
|
||||
const BinTools_FormatVersion theVersion,
|
||||
@@ -191,7 +191,7 @@ bool BinTools::Write(const TopoDS_Shape& theShape,
|
||||
//=================================================================================================
|
||||
|
||||
bool BinTools::Read(TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const Message_ProgressRange& theRange)
|
||||
{
|
||||
const occ::handle<OSD_FileSystem>& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
|
||||
@@ -95,7 +95,7 @@ public:
|
||||
//! @param[in] theFile the path to file to output shape into
|
||||
//! @param theRange the range of progress indicator to fill in
|
||||
static bool Write(const TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const Message_ProgressRange& theRange = Message_ProgressRange())
|
||||
{
|
||||
return Write(theShape, theFile, true, false, BinTools_FormatVersion_CURRENT, theRange);
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
//! @param theRange the range of progress indicator to fill in
|
||||
Standard_EXPORT static bool Write(
|
||||
const TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const bool theWithTriangles,
|
||||
const bool theWithNormals,
|
||||
const BinTools_FormatVersion theVersion,
|
||||
@@ -122,7 +122,7 @@ public:
|
||||
|
||||
//! Reads a shape from <theFile> and returns it in <theShape>.
|
||||
Standard_EXPORT static bool Read(TopoDS_Shape& theShape,
|
||||
const char* theFile,
|
||||
const char* const theFile,
|
||||
const Message_ProgressRange& theRange = Message_ProgressRange());
|
||||
};
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <BinTools_ShapeSetBase.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
const char* BinTools_ShapeSetBase::THE_ASCII_VERSIONS[BinTools_FormatVersion_UPPER + 1] = {
|
||||
const char* const BinTools_ShapeSetBase::THE_ASCII_VERSIONS[BinTools_FormatVersion_UPPER + 1] = {
|
||||
"",
|
||||
"Open CASCADE Topology V1 (c)",
|
||||
"Open CASCADE Topology V2 (c)",
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
//! An empty virtual method for redefinition in shape-reader.
|
||||
Standard_EXPORT virtual void Read(Standard_IStream& /*theStream*/, TopoDS_Shape& /*theShape*/) {}
|
||||
|
||||
static const char* THE_ASCII_VERSIONS[BinTools_FormatVersion_UPPER + 1];
|
||||
static const char* const THE_ASCII_VERSIONS[BinTools_FormatVersion_UPPER + 1];
|
||||
|
||||
private:
|
||||
int myFormatNb;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
#include <cstring>
|
||||
|
||||
const char* TopTools_ShapeSet::THE_ASCII_VERSIONS[TopTools_FormatVersion_UPPER + 1] = {
|
||||
const char* const TopTools_ShapeSet::THE_ASCII_VERSIONS[TopTools_FormatVersion_UPPER + 1] = {
|
||||
"",
|
||||
"CASCADE Topology V1, (c) Matra-Datavision",
|
||||
"CASCADE Topology V2, (c) Matra-Datavision",
|
||||
|
||||
@@ -182,7 +182,7 @@ public:
|
||||
Standard_EXPORT int NbShapes() const;
|
||||
|
||||
public:
|
||||
static const char* THE_ASCII_VERSIONS[TopTools_FormatVersion_VERSION_3 + 1];
|
||||
static const char* const THE_ASCII_VERSIONS[TopTools_FormatVersion_VERSION_3 + 1];
|
||||
|
||||
private:
|
||||
//! Reads from <IS> a shape and returns it in S.
|
||||
|
||||
Reference in New Issue
Block a user