0027426: FSD_BinaryFile: Assignment to a temporary handle variable
authorvro <vro@opencascade.com>
Mon, 14 Dec 2020 10:18:27 +0000 (13:18 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 17 Dec 2020 18:05:02 +0000 (21:05 +0300)
A reference is added to the returning object of the method Storage_InternalData::ReadArray().
Modified files:
- Storage_InternalData.hxx

OCCT: CR27426
Products: nothing

src/Storage/Storage_InternalData.hxx

index 5b50832ac8e658895a64e0fee7f2cd011b009584..51fb2f69999a383b424ad3f815e308ed860d310d 100644 (file)
@@ -37,7 +37,7 @@ class Storage_InternalData : public Standard_Transient
 
 public:
 
-  Handle(Storage_HPArray) ReadArray() { return myReadArray; }
+  Handle(Storage_HPArray)& ReadArray() { return myReadArray; }
   
   Standard_EXPORT Storage_InternalData();