bug 74786, prepare for string cleanup, r=sicking, sr=peterv

This commit is contained in:
axel%pike.org 2002-12-11 09:51:17 +00:00
parent f43b92e7f4
commit 43e8faaf41
2 changed files with 20 additions and 0 deletions

View File

@ -174,6 +174,16 @@ public:
*/
String& operator = (const String& aSource);
#else
/*
* Return a reference to this string's nsString.
*/
operator nsAFlatString&();
/*
* Return a const reference to this string's nsString.
*/
operator const nsAFlatString&() const;
/*
* Return a reference to this string's nsString.
*/

View File

@ -208,6 +208,16 @@ inline void String::toUpperCase()
ToUpperCase(mString);
}
inline String::operator nsAFlatString&()
{
return mString;
}
inline String::operator const nsAFlatString&() const
{
return mString;
}
inline String::operator nsAString&()
{
return mString;