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

@@ -80,33 +80,33 @@ Vrml_Texture2Transform::Vrml_Texture2Transform(const gp_Vec2d& aTranslation,
Standard_OStream& Vrml_Texture2Transform::Print(Standard_OStream& anOStream) const
{
anOStream << "Texture2Transform {" << endl;
anOStream << "Texture2Transform {\n";
if ( Abs(myTranslation.X() - 0) > 0.0001 || Abs(myTranslation.Y() - 0) > 0.0001 )
{
anOStream << " translation" << '\t';
anOStream << myTranslation.X() << ' ' << myTranslation.Y() << endl;
anOStream << " translation\t";
anOStream << myTranslation.X() << " " << myTranslation.Y() << "\n";
}
if ( Abs(myRotation - 0) > 0.0001 )
{
anOStream << " rotation" << '\t';
anOStream << myRotation << endl;
anOStream << " rotation\t";
anOStream << myRotation << "\n";
}
if ( Abs(myScaleFactor.X() - 0) > 0.0001 || Abs(myScaleFactor.Y() - 0) > 0.0001 )
{
anOStream << " scaleFactor" << '\t';
anOStream << myScaleFactor.X() << ' ' << myScaleFactor.Y() << endl;
anOStream << " scaleFactor\t";
anOStream << myScaleFactor.X() << " " << myScaleFactor.Y() << "\n";
}
if ( Abs(myCenter.X() - 0) > 0.0001 || Abs(myCenter.Y() - 0) > 0.0001 )
{
anOStream << " center" << '\t';
anOStream << myCenter.X() << ' ' << myCenter.Y() << endl;
anOStream << " center\t";
anOStream << myCenter.X() << " " << myCenter.Y() << "\n";
}
anOStream << '}' << endl;
anOStream << "}\n";
return anOStream;
}