mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024567: Coding rules - eliminate GCC warning -Wignored-qualifiers
Redundant const qualifiers of return types of functions returning values are removed
This commit is contained in:
@@ -774,7 +774,7 @@ TCollection_ExtendedString TCollection_ExtendedString::Token
|
||||
// ----------------------------------------------------------------------------
|
||||
// ToExtString
|
||||
// ----------------------------------------------------------------------------
|
||||
const Standard_ExtString TCollection_ExtendedString::ToExtString() const
|
||||
Standard_ExtString TCollection_ExtendedString::ToExtString() const
|
||||
{
|
||||
if(mystring) return mystring;
|
||||
return NULL_EXTSTRING;
|
||||
|
@@ -273,7 +273,7 @@ friend Standard_EXPORT Standard_OStream& operator << (Standard_OStream& astream,
|
||||
Standard_EXPORT TCollection_ExtendedString Token (const Standard_ExtString separators, const Standard_Integer whichone = 1) const;
|
||||
|
||||
//! Returns pointer to ExtString
|
||||
Standard_EXPORT const Standard_ExtString ToExtString() const;
|
||||
Standard_EXPORT Standard_ExtString ToExtString() const;
|
||||
|
||||
//! Truncates <me> to <ahowmany> characters.
|
||||
//! Example: me = "Hello Dolly" -> Trunc(3) -> me = "Hel"
|
||||
|
@@ -253,14 +253,6 @@ Handle(TCollection_HExtendedString) TCollection_HExtendedString::Token
|
||||
return new TCollection_HExtendedString(myString.Token(separators,whichone));
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// ToExtString
|
||||
// ----------------------------------------------------------------------------
|
||||
const Standard_ExtString TCollection_HExtendedString::ToExtString() const
|
||||
{
|
||||
return (myString.ToExtString());
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Trunc
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -163,7 +163,10 @@ public:
|
||||
Standard_EXPORT Standard_Integer SearchFromEnd (const Handle(TCollection_HExtendedString)& what) const;
|
||||
|
||||
//! Returns pointer to ExtString
|
||||
Standard_EXPORT const Standard_ExtString ToExtString() const;
|
||||
Standard_ExtString ToExtString() const
|
||||
{
|
||||
return myString.ToExtString();
|
||||
}
|
||||
|
||||
//! Extracts <whichone> token from <me>.
|
||||
//! By default, the <separators> is set to space and tabulation.
|
||||
|
Reference in New Issue
Block a user