mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
bug 74786, prepare for string cleanup, r=sicking, sr=peterv
This commit is contained in:
parent
f43b92e7f4
commit
43e8faaf41
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user