Condition nsAutoString operator=() and some Assign() based on NEW_STRING_APIS. r=scc

git-svn-id: svn://10.0.0.236/trunk@63956 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
2000-03-24 00:40:47 +00:00
parent c16ef3cc46
commit 230de8a1d0
6 changed files with 45 additions and 12 deletions

View File

@@ -958,6 +958,7 @@ PRInt32 nsString::ToInteger(PRInt32* anErrorCode,PRUint32 aRadix) const {
* @param aString: nsStr to be appended
* @return this
*/
#ifndef NEW_STRING_APIS
nsString& nsString::Assign(const nsStr& aString,PRInt32 aCount) {
if(this!=&aString){
nsStr::Truncate(*this,0);
@@ -970,7 +971,7 @@ nsString& nsString::Assign(const nsStr& aString,PRInt32 aCount) {
}
return *this;
}
#endif
/**
* assign given char* to this string