зеркало из https://github.com/mozilla/gecko-dev.git
Bug 88413: Remove GetUnicode() from nsString. Begone! r=dbaron, sr=scc
This commit is contained in:
Родитель
8b1cc424ec
Коммит
f9c67333fd
|
@ -246,7 +246,7 @@ const char* nsString::GetBuffer(void) const {
|
|||
* @update gess1/4/99
|
||||
* @return ptr to internal (2-byte) buffer;
|
||||
*/
|
||||
const PRUnichar* nsString::GetUnicode(void) const {
|
||||
const PRUnichar* nsString::get() const {
|
||||
const PRUnichar* result=(eOneByte==mCharSize) ? 0 : mUStr;
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ protected:
|
|||
virtual PRUnichar* GetWritableFragment( nsWritableFragment<PRUnichar>&, nsFragmentRequest, PRUint32 );
|
||||
|
||||
public:
|
||||
virtual const PRUnichar* get() const { return GetUnicode(); }
|
||||
virtual const PRUnichar* get() const;
|
||||
|
||||
public:
|
||||
/**
|
||||
|
@ -162,7 +162,6 @@ public:
|
|||
* Retrieve const ptr to internal buffer; DO NOT TRY TO FREE IT!
|
||||
*/
|
||||
const char* GetBuffer(void) const;
|
||||
const PRUnichar* GetUnicode(void) const;
|
||||
|
||||
/**
|
||||
* Set nth character.
|
||||
|
|
|
@ -246,7 +246,7 @@ const char* nsString::GetBuffer(void) const {
|
|||
* @update gess1/4/99
|
||||
* @return ptr to internal (2-byte) buffer;
|
||||
*/
|
||||
const PRUnichar* nsString::GetUnicode(void) const {
|
||||
const PRUnichar* nsString::get() const {
|
||||
const PRUnichar* result=(eOneByte==mCharSize) ? 0 : mUStr;
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ protected:
|
|||
virtual PRUnichar* GetWritableFragment( nsWritableFragment<PRUnichar>&, nsFragmentRequest, PRUint32 );
|
||||
|
||||
public:
|
||||
virtual const PRUnichar* get() const { return GetUnicode(); }
|
||||
virtual const PRUnichar* get() const;
|
||||
|
||||
public:
|
||||
/**
|
||||
|
@ -162,7 +162,6 @@ public:
|
|||
* Retrieve const ptr to internal buffer; DO NOT TRY TO FREE IT!
|
||||
*/
|
||||
const char* GetBuffer(void) const;
|
||||
const PRUnichar* GetUnicode(void) const;
|
||||
|
||||
/**
|
||||
* Set nth character.
|
||||
|
|
Загрузка…
Ссылка в новой задаче