1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0029422: OCAF, old persistence - wrong implementation of writing a reference

This commit is contained in:
abv 2018-01-11 23:23:09 +03:00 committed by apn
parent 2651bb324e
commit fcca9d7cd0
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ void StdObjMgt_WriteData::WritePersistentObject (const Handle(StdObjMgt_Persiste
StdObjMgt_WriteData& StdObjMgt_WriteData::operator << (const Handle(StdObjMgt_Persistent)& thePersistent) StdObjMgt_WriteData& StdObjMgt_WriteData::operator << (const Handle(StdObjMgt_Persistent)& thePersistent)
{ {
*myDriver << (thePersistent ? thePersistent->RefNum() : 0); myDriver->PutReference(thePersistent ? thePersistent->RefNum() : 0);
return *this; return *this;
} }

View File

@ -53,7 +53,7 @@ public:
template <class Persistent> template <class Persistent>
StdObjMgt_WriteData& operator << (const Handle(Persistent)& thePersistent) StdObjMgt_WriteData& operator << (const Handle(Persistent)& thePersistent)
{ {
*myDriver << (thePersistent ? thePersistent->RefNum() : 0); myDriver->PutReference(thePersistent ? thePersistent->RefNum() : 0);
return *this; return *this;
} }