1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +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

@@ -85,18 +85,18 @@ Vrml_Texture2::Vrml_Texture2(const TCollection_AsciiString& aFilename,
Standard_OStream& Vrml_Texture2::Print(Standard_OStream& anOStream) const
{
Standard_Integer i;
anOStream << "Texture2 {" << endl;
anOStream << "Texture2 {\n";
if ( !(myFilename.IsEqual("") ) )
{
anOStream << " filename" << '\t';
anOStream << '"' << myFilename << '"' << endl;
anOStream << " filename\t";
anOStream << '"' << myFilename << '"' << "\n";
}
if ( myImage->Width() != 0 || myImage->Height() != 0 || myImage->Number() != Vrml_NULL )
{
anOStream << " image" << '\t';
anOStream << myImage->Width() << ' ' << myImage->Height() << ' ';
anOStream << " image\t";
anOStream << myImage->Width() << " " << myImage->Height() << " ";
switch ( myImage->Number() )
{
@@ -111,25 +111,25 @@ Vrml_Texture2::Vrml_Texture2(const TCollection_AsciiString& aFilename,
{
for ( i = myImage->Array()->Lower(); i <= myImage->Array()->Upper(); i++ )
{
// anOStream << ' ' << hex(myImage->Array()->Value(i),0);
anOStream << ' ' << myImage->Array()->Value(i);
// anOStream << " " << hex(myImage->Array()->Value(i),0);
anOStream << " " << myImage->Array()->Value(i);
}
}
anOStream << endl;
anOStream << "\n";
}
switch ( myWrapS )
{
case Vrml_REPEAT: break; // anOStream << " wrapS" << "\tREPEAT ";
case Vrml_CLAMP: anOStream << " wrapS" << "\tCLAMP" << endl; break;
case Vrml_REPEAT: break; // anOStream << " wrapS\tREPEAT ";
case Vrml_CLAMP: anOStream << " wrapS\tCLAMP\n"; break;
}
switch ( myWrapT )
{
case Vrml_REPEAT: break; // anOStream << " wrapT" << "\tREPEAT ";
case Vrml_CLAMP: anOStream << " wrapT" << "\tCLAMP" << endl; break;
case Vrml_REPEAT: break; // anOStream << " wrapT\tREPEAT ";
case Vrml_CLAMP: anOStream << " wrapT\tCLAMP\n"; break;
}
anOStream << '}' << endl;
anOStream << "}\n";
return anOStream;
}