]> OCCT Git - occt.git/commit
Foundation Classes, Strings - add EmptyString() for Ascii/Extended and use it everywh...
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Sat, 1 Nov 2025 22:39:12 +0000 (22:39 +0000)
committerGitHub <noreply@github.com>
Sat, 1 Nov 2025 22:39:12 +0000 (22:39 +0000)
commit962a456f9b1cd510adb31ae4e477a59c6aab9515
treea21da996af6cf2569cd20e608d0d75c02a0354bb
parenta575926c2da4baae53b20fb0ac77acb6f52404de
Foundation Classes, Strings - add EmptyString() for Ascii/Extended and use it everywhere (#788)

Introduce TCollection_AsciiString::EmptyString() and TCollection_ExtendedString::EmptyString()
  and update headers.
Replace many local/static empty string instances and default-constructed
  temporaries with the shared EmptyString() reference across ApplicationFramework, DataExchange,
  Visualization and other modules.
Remove several unused local empty-key/static variables and
  adjust default parameters and return paths to use the centralized empty-string accessors.
Add missing #include <TCollection_AsciiString.hxx> to several headers that use/forward TCollection_AsciiString.
34 files changed:
src/ApplicationFramework/TKLCAF/TDF/TDF_DerivedAttribute.cxx
src/ApplicationFramework/TKLCAF/TDataStd/TDataStd_ExtStringArray.cxx
src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_Collection.cxx
src/ApplicationFramework/TKStdL/StdLPersistent/StdLPersistent_NamedData.cxx
src/DataExchange/TKDESTEP/RWHeaderSection/RWHeaderSection_ReadWriteModule.cxx
src/DataExchange/TKDESTEP/StepData/StepData_EnumTool.cxx
src/DataExchange/TKRWMesh/RWMesh/RWMesh_CafReader.cxx
src/DataExchange/TKXCAF/XCAFPrs/XCAFPrs_DocumentExplorer.cxx
src/DataExchange/TKXSBase/IFSelect/IFSelect_SessionPilot.cxx
src/DataExchange/TKXSBase/MoniTool/MoniTool_CaseData.cxx
src/Draw/TKQADraw/QABugs/QABugs_19.cxx
src/FoundationClasses/TKernel/Message/Message_Attribute.hxx
src/FoundationClasses/TKernel/Message/Message_AttributeMeter.hxx
src/FoundationClasses/TKernel/Message/Message_AttributeObject.hxx
src/FoundationClasses/TKernel/Message/Message_AttributeStream.hxx
src/FoundationClasses/TKernel/Message/Message_Level.hxx
src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.cxx
src/FoundationClasses/TKernel/TCollection/TCollection_AsciiString.hxx
src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.cxx
src/FoundationClasses/TKernel/TCollection/TCollection_ExtendedString.hxx
src/ModelingData/TKBRep/TopoDS/TopoDS_AlertAttribute.hxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_AspectsProgram.cxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_AspectsSprite.cxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_AspectsTextureSet.cxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_FrameBuffer.hxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_Texture.hxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_View.hxx
src/Visualization/TKOpenGl/OpenGl/OpenGl_View_Raytrace.cxx
src/Visualization/TKService/Font/Font_FontMgr.cxx
src/Visualization/TKService/Graphic3d/Graphic3d_AspectText3d.hxx
src/Visualization/TKService/Graphic3d/Graphic3d_ShaderObject.hxx
src/Visualization/TKService/WNT/WNT_WClass.hxx
src/Visualization/TKV3d/PrsDim/PrsDim_AngleDimension.cxx
src/Visualization/TKV3d/PrsDim/PrsDim_Dimension.cxx