1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026922: Huge performance issue writing data to the output stream

Test case for issue CR26922

Correction of literal (char to string)
This commit is contained in:
mgn
2015-12-02 16:39:55 +03:00
committed by bugmaster
parent cc6852f3e9
commit 586db386eb
183 changed files with 3221 additions and 3181 deletions

View File

@@ -156,7 +156,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
TopoDS_Shape S = DBRep::Get(a[2]);
if (S.IsNull()) {
di <<"Noone shape selected"<<"\n";
di <<"Noone shape selected\n";
//di << 0;
return 0;
}
@@ -168,7 +168,7 @@ static Standard_Integer Getentry (Draw_Interpretor& di, Standard_Integer n, cons
else {
di <<Name.ToCString();
if (Status == 2) {
di <<"Several shapes have the same name"<<"\n";
di <<"Several shapes have the same name\n";
}
}
return 0;
@@ -187,7 +187,7 @@ static Standard_Integer NamedShape(Draw_Interpretor& di, Standard_Integer n, con
if (!DDF::GetDF(a[1],ND)) return 1;
TopoDS_Shape SS = DBRep::Get(a[2]);
if (SS.IsNull()) {
di <<"Noone shape selected"<<"\n";
di <<"Noone shape selected\n";
//di << 0;
return 0;
}
@@ -256,7 +256,7 @@ static Standard_Integer Initialshape (Draw_Interpretor& di, Standard_Integer n,
TDF_Tool::Entry(itL.Value(),entry);
di <<" , "<< entry.ToCString();
}
di <<"."<<"\n";
di <<".\n";
return 0;
}
@@ -282,7 +282,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
DDF::FindLabel(ND,a[2],Lab);
Handle(TNaming_NamedShape) NS;
if (!Lab.FindAttribute(TNaming_NamedShape::GetID(),NS)) {
di <<"No shape"<<"\n";
di <<"No shape\n";
return 0;
}
@@ -306,7 +306,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
}
di <<"\n";
if (NbShapes == 0) {
di <<"No shape"<<"\n";
di <<"No shape\n";
}
return 0;
@@ -336,7 +336,7 @@ static Standard_Integer Generatedshape (Draw_Interpretor& di,
return 0;
}
}
di << "GetShape : Error" << "\n";
di << "GetShape : Error\n";
return 1;
}
@@ -362,7 +362,7 @@ static Standard_Integer Getshape (Draw_Interpretor& di,
return 0;
}
}
di << "DDataStd_GetShape : Error" << "\n";
di << "DDataStd_GetShape : Error\n";
return 1;
}
//=======================================================================
@@ -410,7 +410,7 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
TopoDS_Shape SS = DBRep::Get(a[2]);
if (SS.IsNull()) {
di <<"Noone shape selected"<<"\n";
di <<"Noone shape selected\n";
//di << 0;
return 0;
}
@@ -431,7 +431,7 @@ static Standard_Integer Getcreationentry (Draw_Interpretor& di, Standard_Integer
else {
di <<Name.ToCString();
if (Status == 2) {
di <<"Several shapes have the same name"<<"\n";
di <<"Several shapes have the same name\n";
}
}
return 0;
@@ -487,14 +487,14 @@ static Standard_Integer CheckIter (Draw_Interpretor& di,
if(nb == 5) aNew = (Standard_Boolean) atoi(arg[4]);
if(aNew) {
TNaming_NewShapeIterator aNewShapeIter(aNameIter);
di << "DNaming_CheckIterator : New It is OK" << "\n";
di << "DNaming_CheckIterator : New It is OK\n";
} else {
TNaming_OldShapeIterator oldShapeIter(aNameIter);
di << "DNaming_CheckIterator : Old It is OK" << "\n";
di << "DNaming_CheckIterator : Old It is OK\n";
}
return 0;
}
di << "DNaming_CheckIterator : Error" << "\n";
di << "DNaming_CheckIterator : Error\n";
return 1;
}