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:
@@ -103,7 +103,7 @@ static Standard_Integer DPrsStd_AISRemove (Draw_Interpretor& di,
|
||||
TPrsStd_AISViewer::Update(L);
|
||||
return 0;
|
||||
}
|
||||
di << "DPrsStd_AISRedisplay : Error" << "\n";
|
||||
di << "DPrsStd_AISRedisplay : Error\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ static Standard_Integer DPrsStd_AISErase (Draw_Interpretor& di,
|
||||
TPrsStd_AISViewer::Update(L);
|
||||
return 0;
|
||||
}
|
||||
di << "DPrsStd_AISErase : Error" << "\n";
|
||||
di << "DPrsStd_AISErase : Error\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -152,7 +152,7 @@ static Standard_Integer DPrsStd_AISUpdate (Draw_Interpretor& di,
|
||||
TPrsStd_AISViewer::Update(L);
|
||||
return 0;
|
||||
}
|
||||
di << "DPrsStd_AISUpdate : Error" << "\n";
|
||||
di << "DPrsStd_AISUpdate : Error\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
|
||||
di<<resS;
|
||||
return 0;
|
||||
}
|
||||
di << "DPrsStd_AISSet : Error" << "\n";
|
||||
di << "DPrsStd_AISSet : Error\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -271,7 +271,7 @@ static Standard_Integer DPrsStd_AISDriver (Draw_Interpretor& di,
|
||||
}
|
||||
}
|
||||
}
|
||||
di << "DPrsStd_AISDriver : Error" << "\n";
|
||||
di << "DPrsStd_AISDriver : Error\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ static Standard_Integer DPrsStd_AISUnset (Draw_Interpretor& di,
|
||||
TPrsStd_AISViewer::Update(L);
|
||||
return 0;
|
||||
}
|
||||
di << "DPrsStd_AISDriver : Error" << "\n";
|
||||
di << "DPrsStd_AISDriver : Error\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -328,7 +328,7 @@ static Standard_Integer DPrsStd_AISTransparency (Draw_Interpretor& di,
|
||||
di<<prs->Transparency();
|
||||
}
|
||||
else{
|
||||
di << "DPrsStd_AISTransparency: Warning : Transparency wasn't set" << "\n";
|
||||
di << "DPrsStd_AISTransparency: Warning : Transparency wasn't set\n";
|
||||
di<<(-1);
|
||||
}
|
||||
}
|
||||
@@ -395,7 +395,7 @@ static Standard_Integer DPrsStd_AISColor (Draw_Interpretor& di,
|
||||
di<<prs->Color();
|
||||
}
|
||||
else{
|
||||
di << "DPrsStd_AISColor: Warning : Color wasn't set" << "\n";
|
||||
di << "DPrsStd_AISColor: Warning : Color wasn't set\n";
|
||||
di<<(-1);
|
||||
}
|
||||
return 0;
|
||||
@@ -464,7 +464,7 @@ static Standard_Integer DPrsStd_AISMaterial (Draw_Interpretor& di,
|
||||
di<<prs->Material();
|
||||
}
|
||||
else{
|
||||
di << "DPrsStd_AISMaterial: Warning : Material wasn't set" << "\n";
|
||||
di << "DPrsStd_AISMaterial: Warning : Material wasn't set\n";
|
||||
di<<(-1);
|
||||
}
|
||||
}
|
||||
@@ -516,7 +516,7 @@ static Standard_Integer DPrsStd_AISHasOwnColor (Draw_Interpretor& di,
|
||||
{
|
||||
if (nb >= 3) {
|
||||
if (nb > 3)
|
||||
di << "DPrsStd_AISHasOwnColor : Warning : too many arguments" << "\n";
|
||||
di << "DPrsStd_AISHasOwnColor : Warning : too many arguments\n";
|
||||
|
||||
Handle(TDocStd_Document) D;
|
||||
if (!DDocStd::GetDocument(arg[1],D)) return 1;
|
||||
@@ -550,7 +550,7 @@ static Standard_Integer DPrsStd_AISHasOwnMaterial (Draw_Interpretor& di,
|
||||
{
|
||||
if (nb >= 3) {
|
||||
if (nb > 3)
|
||||
di << "DPrsStd_AISHasOwnMaterial : Warning : too many arguments" << "\n";
|
||||
di << "DPrsStd_AISHasOwnMaterial : Warning : too many arguments\n";
|
||||
|
||||
Handle(TDocStd_Document) D;
|
||||
if (!DDocStd::GetDocument(arg[1],D)) return 1;
|
||||
@@ -584,7 +584,7 @@ static Standard_Integer DPrsStd_AISHasOwnTransparency (Draw_Interpretor& di,
|
||||
{
|
||||
if (nb >= 3) {
|
||||
if (nb > 3)
|
||||
di << "DPrsStd_AISHasOwnTransparency : Warning : too many arguments" << "\n";
|
||||
di << "DPrsStd_AISHasOwnTransparency : Warning : too many arguments\n";
|
||||
|
||||
Handle(TDocStd_Document) D;
|
||||
if (!DDocStd::GetDocument(arg[1],D)) return 1;
|
||||
|
@@ -85,7 +85,7 @@ static Standard_Integer DPrsStd_AISRepaint (Draw_Interpretor& di,
|
||||
TPrsStd_AISViewer::Update(acces);
|
||||
return 0;
|
||||
}
|
||||
di << "DPrsStd_AISRepaint : Error" << "\n";
|
||||
di << "DPrsStd_AISRepaint : Error\n";
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user