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

@@ -993,17 +993,17 @@ static void CompSparseArray (Draw_Interpretor& theDI,
Standard_Integer CheckArguments(Draw_Interpretor& di, Standard_Integer argc, const char ** argv, Standard_Integer& Repeat, Standard_Integer& Size)
{
if ( argc != 3) {
di << "Usage : " << argv[0] << " Repeat Size" << "\n";
di << "Usage : " << argv[0] << " Repeat Size\n";
return 1;
}
Repeat = Draw::Atoi(argv[1]);
Size = Draw::Atoi(argv[2]);
if ( Repeat < 1 ) {
di << "Repeat > 0" << "\n";
di << "Repeat > 0\n";
return 1;
}
if ( Size < 1 ) {
di << "Size > 0" << "\n";
di << "Size > 0\n";
return 1;
}
return 0;