moved char* conversion operators to nsCString

This commit is contained in:
peterl%netscape.com 1999-07-18 00:03:43 +00:00
Родитель 237caa690f
Коммит 1dd1f5cc78
3 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -320,6 +320,9 @@ nsCString& CompressWhitespace( PRBool aEliminateLeading=PR_TRUE,PRBool aEliminat
string conversion methods... string conversion methods...
*********************************************************************/ *********************************************************************/
operator char*() {return mStr;}
operator const char*() const {return (const char*)mStr;}
/** /**
* This method constructs a new nsCString on the stack that is a copy * This method constructs a new nsCString on the stack that is a copy
* of this string. * of this string.
@ -764,9 +767,6 @@ public:
nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); return *this;} nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); return *this;}
nsCAutoString& operator=(PRUnichar aChar) {nsCString::operator=(aChar); return *this;} nsCAutoString& operator=(PRUnichar aChar) {nsCString::operator=(aChar); return *this;}
operator char*() {return mStr;}
operator const char*() {return (const char*)mStr;}
/** /**
* Retrieve the size of this string * Retrieve the size of this string
* @return string length * @return string length

Просмотреть файл

@ -320,6 +320,9 @@ nsCString& CompressWhitespace( PRBool aEliminateLeading=PR_TRUE,PRBool aEliminat
string conversion methods... string conversion methods...
*********************************************************************/ *********************************************************************/
operator char*() {return mStr;}
operator const char*() const {return (const char*)mStr;}
/** /**
* This method constructs a new nsCString on the stack that is a copy * This method constructs a new nsCString on the stack that is a copy
* of this string. * of this string.
@ -764,9 +767,6 @@ public:
nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); return *this;} nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); return *this;}
nsCAutoString& operator=(PRUnichar aChar) {nsCString::operator=(aChar); return *this;} nsCAutoString& operator=(PRUnichar aChar) {nsCString::operator=(aChar); return *this;}
operator char*() {return mStr;}
operator const char*() {return (const char*)mStr;}
/** /**
* Retrieve the size of this string * Retrieve the size of this string
* @return string length * @return string length

Просмотреть файл

@ -320,6 +320,9 @@ nsCString& CompressWhitespace( PRBool aEliminateLeading=PR_TRUE,PRBool aEliminat
string conversion methods... string conversion methods...
*********************************************************************/ *********************************************************************/
operator char*() {return mStr;}
operator const char*() const {return (const char*)mStr;}
/** /**
* This method constructs a new nsCString on the stack that is a copy * This method constructs a new nsCString on the stack that is a copy
* of this string. * of this string.
@ -764,9 +767,6 @@ public:
nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); return *this;} nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); return *this;}
nsCAutoString& operator=(PRUnichar aChar) {nsCString::operator=(aChar); return *this;} nsCAutoString& operator=(PRUnichar aChar) {nsCString::operator=(aChar); return *this;}
operator char*() {return mStr;}
operator const char*() {return (const char*)mStr;}
/** /**
* Retrieve the size of this string * Retrieve the size of this string
* @return string length * @return string length