Add |.get()| to NS_ConvertUCS2toUTF8 to make getting rid of some MLKs easier, bug=54740, r=scc, a=waterson

This commit is contained in:
disttsc%bart.nl 2000-10-07 00:08:47 +00:00
parent 0d0bd48cd5
commit 3a2fed4fb9
3 changed files with 21 additions and 6 deletions

View File

@ -576,9 +576,14 @@ class NS_COM NS_ConvertUCS2toUTF8
explicit NS_ConvertUCS2toUTF8( const nsAReadableString& aString );
operator const char*() const
const char* get() const
{
return GetBuffer();
return mStr;
}
operator const char*() const // to be deprecated, prefer |get()|
{
return get();
}
protected:

View File

@ -576,9 +576,14 @@ class NS_COM NS_ConvertUCS2toUTF8
explicit NS_ConvertUCS2toUTF8( const nsAReadableString& aString );
operator const char*() const
const char* get() const
{
return GetBuffer();
return mStr;
}
operator const char*() const // to be deprecated, prefer |get()|
{
return get();
}
protected:

View File

@ -576,9 +576,14 @@ class NS_COM NS_ConvertUCS2toUTF8
explicit NS_ConvertUCS2toUTF8( const nsAReadableString& aString );
operator const char*() const
const char* get() const
{
return GetBuffer();
return mStr;
}
operator const char*() const // to be deprecated, prefer |get()|
{
return get();
}
protected: