1
0
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:
Roman Lygin
2013-01-18 13:50:27 +04:00
parent d97f89db4f
commit 5ae15e0ef7
2 changed files with 4 additions and 3 deletions

View File

@@ -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> .

View File

@@ -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;
}