From c6685c65fdc4f1012e8cbe15d87c0d7e58246b3f Mon Sep 17 00:00:00 2001 From: vro Date: Mon, 14 Dec 2020 13:18:27 +0300 Subject: [PATCH] 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 --- src/Storage/Storage_InternalData.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();