From: vro Date: Mon, 14 Dec 2020 10:18:27 +0000 (+0300) Subject: 0027426: FSD_BinaryFile: Assignment to a temporary handle variable X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=03735df15f6e8094aa824a131e67dd52f44bde5b;p=occt-copy.git 0027426: FSD_BinaryFile: Assignment to a temporary handle variable A reference is added to the returning object of the method Storage_InternalData::ReadArray(). Modified files: - Storage_InternalData.hxx OCCT: CR27426 Products: nothing --- diff --git a/src/Storage/Storage_InternalData.hxx b/src/Storage/Storage_InternalData.hxx index 5b50832ac8..51fb2f6999 100644 --- a/src/Storage/Storage_InternalData.hxx +++ b/src/Storage/Storage_InternalData.hxx @@ -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();