0029355: OCCT 6.9.1 persistence restored in OCCT 7.2.0 not working
authorabv <abv@opencascade.com>
Sat, 2 Dec 2017 08:24:58 +0000 (11:24 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 8 Dec 2017 13:39:26 +0000 (16:39 +0300)
commit472433e2c7345c113fc7558fd3365eb2768e9be4
tree4c703bdd6edf776d53f8a47e5b7761502c432024
parent67160f4e793db10185323fb7ff22ce270dd58129
0029355: OCCT 6.9.1 persistence restored in OCCT 7.2.0 not working

Auxiliary classes StdObjMgt_ReadData::Object and StdObjMgt_WriteData::Object are renamed to "ObjectSentry" (to better reflect their nature); constructor is made explicit to ensure that such objects are always created intentionally.
These objects are instantiated explicitly in the body of relevant functions, instead of implicit creation as temporary objects when function requires such object as argument.
Variable used to get char from stream is nullified in several places in FSD_File and other classes, to avoid possible usage of uninitialized memory in case if stream is bad.
18 files changed:
src/DDF/DDF_IOStream.cxx
src/FSD/FSD_CmpFile.cxx
src/FSD/FSD_File.cxx
src/ShapePersistent/ShapePersistent_HArray1.hxx
src/StdLPersistent/StdLPersistent_HArray1.cxx
src/StdLPersistent/StdLPersistent_HArray2.cxx
src/StdLPersistent/StdLPersistent_HString.cxx
src/StdObjMgt/StdObjMgt_ReadData.cxx
src/StdObjMgt/StdObjMgt_ReadData.hxx
src/StdObjMgt/StdObjMgt_WriteData.cxx
src/StdObjMgt/StdObjMgt_WriteData.hxx
src/StdObject/StdObject_Location.hxx
src/StdObject/StdObject_Shape.hxx
src/StdObject/StdObject_gp_Axes.hxx
src/StdObject/StdObject_gp_Trsfs.hxx
src/StdObject/StdObject_gp_Vectors.hxx
tests/bugs/fclasses/begin
tests/bugs/fclasses/bug29355 [new file with mode: 0644]