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:
@@ -217,6 +217,7 @@ is
|
|||||||
|
|
||||||
String(me) returns ExtendedString from TCollection;
|
String(me) returns ExtendedString from TCollection;
|
||||||
---Purpose: Returns the field myString
|
---Purpose: Returns the field myString
|
||||||
|
---C++: return const &
|
||||||
|
|
||||||
Print (me ; astream : out OStream);
|
Print (me ; astream : out OStream);
|
||||||
---Purpose: Displays <me> .
|
---Purpose: Displays <me> .
|
||||||
|
@@ -279,7 +279,7 @@ Standard_ExtCharacter TCollection_HExtendedString::Value
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// String
|
// 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