mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
CR23684: TCollection_HExtendedString::String() returns a copy instead of const reference
Update TCollection_HExtendedString::String() implementation as well
This commit is contained in:
@@ -216,7 +216,8 @@ is
|
||||
raises OutOfRange from Standard;
|
||||
|
||||
String(me) returns ExtendedString from TCollection;
|
||||
---Purpose: Returns the field myString
|
||||
---Purpose: Returns the field myString
|
||||
---C++: return const &
|
||||
|
||||
Print (me ; astream : out OStream);
|
||||
---Purpose: Displays <me> .
|
||||
|
@@ -279,9 +279,9 @@ Standard_ExtCharacter TCollection_HExtendedString::Value
|
||||
// ----------------------------------------------------------------------------
|
||||
// String
|
||||
// ----------------------------------------------------------------------------
|
||||
TCollection_ExtendedString TCollection_HExtendedString::String() const
|
||||
const TCollection_ExtendedString& TCollection_HExtendedString::String() const
|
||||
{
|
||||
return myString;
|
||||
return myString;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user