mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-26 14:20:34 +05:00
Porting to CAS-6.3
This commit is contained in:
parent
bb8292d233
commit
74a64dd014
@ -363,7 +363,7 @@ namespace SMESH
|
|||||||
|
|
||||||
// find where literal begins
|
// find where literal begins
|
||||||
int literalBeg = theFrom + myLongStringStart.Length(); // = 26
|
int literalBeg = theFrom + myLongStringStart.Length(); // = 26
|
||||||
char* typeLenStr = theText.ToCString() + literalBeg - 1; // = "7 Pattern!!! SALO...."
|
char* typeLenStr = (char*) theText.ToCString() + literalBeg - 1; // = "7 Pattern!!! SALO...."
|
||||||
int typeLen = atoi ( typeLenStr ); // = 7
|
int typeLen = atoi ( typeLenStr ); // = 7
|
||||||
while ( *typeLenStr != ' ' ) { // look for ' ' after typeLen
|
while ( *typeLenStr != ' ' ) { // look for ' ' after typeLen
|
||||||
literalBeg++; // 26 -> 27
|
literalBeg++; // 26 -> 27
|
||||||
@ -527,7 +527,7 @@ Handle(TColStd_HSequenceOfInteger) FindEntries (TCollection_AsciiString& theStri
|
|||||||
Standard_Integer aLen = theString.Length();
|
Standard_Integer aLen = theString.Length();
|
||||||
Standard_Boolean isFound = Standard_False;
|
Standard_Boolean isFound = Standard_False;
|
||||||
|
|
||||||
char* arr = theString.ToCString();
|
char* arr = (char*) theString.ToCString();
|
||||||
Standard_Integer i = 0, j;
|
Standard_Integer i = 0, j;
|
||||||
|
|
||||||
while(i < aLen) {
|
while(i < aLen) {
|
||||||
@ -880,7 +880,7 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl
|
|||||||
{
|
{
|
||||||
// find the function name
|
// find the function name
|
||||||
int functBeg = posAlready;
|
int functBeg = posAlready;
|
||||||
char* script = anUpdatedScript.ToCString() + posAlready - 1; // look at ":" after "def fuction()"
|
char* script = (char*) anUpdatedScript.ToCString() + posAlready - 1; // look at ":" after "def fuction()"
|
||||||
while ( *script != ' ' ) {
|
while ( *script != ' ' ) {
|
||||||
script--;
|
script--;
|
||||||
functBeg--;
|
functBeg--;
|
||||||
|
@ -1907,7 +1907,7 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
|
|
||||||
// Write data
|
// Write data
|
||||||
// ---> create HDF file
|
// ---> create HDF file
|
||||||
aFile = new HDFfile( filename.ToCString() );
|
aFile = new HDFfile( (char*) filename.ToCString() );
|
||||||
aFile->CreateOnDisk();
|
aFile->CreateOnDisk();
|
||||||
|
|
||||||
// --> iterator for top-level objects
|
// --> iterator for top-level objects
|
||||||
@ -2857,7 +2857,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
|
|
||||||
// Read data
|
// Read data
|
||||||
// ---> open HDF file
|
// ---> open HDF file
|
||||||
aFile = new HDFfile( filename.ToCString() );
|
aFile = new HDFfile( (char*) filename.ToCString() );
|
||||||
try {
|
try {
|
||||||
aFile->OpenOnDisk( HDF_RDONLY );
|
aFile->OpenOnDisk( HDF_RDONLY );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user