mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Add |.get()| to NS_ConvertUCS2toUTF8 to make getting rid of some MLKs easier, bug=54740, r=scc, a=waterson
This commit is contained in:
parent
0d0bd48cd5
commit
3a2fed4fb9
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user