moved char* conversion operators to nsCString

git-svn-id: svn://10.0.0.236/trunk@39914 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com 1999-07-18 00:03:43 +00:00
parent 147dcebe08
commit 8cab2dcff8
3 changed files with 9 additions and 9 deletions

View File

@ -320,6 +320,9 @@ nsCString& CompressWhitespace( PRBool aEliminateLeading=PR_TRUE,PRBool aEliminat
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
* of this string.
@ -764,9 +767,6 @@ public:
nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); 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
* @return string length

View File

@ -320,6 +320,9 @@ nsCString& CompressWhitespace( PRBool aEliminateLeading=PR_TRUE,PRBool aEliminat
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
* of this string.
@ -764,9 +767,6 @@ public:
nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); 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
* @return string length

View File

@ -320,6 +320,9 @@ nsCString& CompressWhitespace( PRBool aEliminateLeading=PR_TRUE,PRBool aEliminat
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
* of this string.
@ -764,9 +767,6 @@ public:
nsCAutoString& operator=(const PRUnichar* aBuffer) {nsCString::operator=(aBuffer); 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
* @return string length