DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc
git-svn-id: svn://10.0.0.236/trunk@76967 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2275,6 +2275,15 @@ nsAutoString::nsAutoString( const nsString& aString )
|
||||
Append(aString);
|
||||
}
|
||||
|
||||
nsAutoString::nsAutoString( const nsAReadableString& aString )
|
||||
: nsString()
|
||||
{
|
||||
Initialize(*this, mBuffer, (sizeof(mBuffer)>>eTwoByte)-1, 0, eTwoByte, PR_FALSE);
|
||||
AddNullTerminator(*this);
|
||||
Append(aString);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* constructor that uses external buffer
|
||||
|
||||
Reference in New Issue
Block a user