mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0031546: Application Framework - Memory leak (100 bytes) on Load / Close OCAF document
Class Standard_BaseDriver is inherited from Standard_Transient, its descendants are updated accordingly. Handle is used to manipulate objects of this class and its descendants (instead of references or raw pointers) to ensure automatic destruction. Added test bugs caf bug31546 Related: - Standard_OVERRIDE is added in declarations of virtual methods in descendants of Storage_BaseDriver - Methods operator << and operator >> are removed in descendants of Storage_BaseDriver (they repeat the same methods inherited from the base class) - Typedef PCDM_BaseDriverPointer is marked as deprecated - Unused class DDI_Ostream is removed - Private field Standard_Transient::count is renamed to myRefCount_ to avoid compiler warnings if the same name is used within the scope of a descendant class - Output of meaningful error messages is restored in DRAW commands fsdread and fsdwrite
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
|
||||
|
||||
StdObjMgt_ReadData::StdObjMgt_ReadData
|
||||
(Storage_BaseDriver& theDriver, const Standard_Integer theNumberOfObjects)
|
||||
: myDriver (&theDriver)
|
||||
(const Handle(Storage_BaseDriver)& theDriver, const Standard_Integer theNumberOfObjects)
|
||||
: myDriver (theDriver)
|
||||
, myPersistentObjects (1, theNumberOfObjects) {}
|
||||
|
||||
void StdObjMgt_ReadData::ReadPersistentObject (const Standard_Integer theRef)
|
||||
|
Reference in New Issue
Block a user