fixed small mac bug

git-svn-id: svn://10.0.0.236/trunk@24702 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com
1999-03-22 21:52:57 +00:00
parent 9a13cf785f
commit 3fbd23b07e
4 changed files with 4 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ void nsStr::EnsureCapacity(nsStr& aString,PRUint32 aNewLength,nsIMemoryAgent* an
void nsStr::GrowCapacity(nsStr& aDest,PRUint32 aNewLength,nsIMemoryAgent* anAgent) {
if(aNewLength>aDest.mCapacity) {
nsStr theTempStr;
nsStr::Initialize(theTempStr,aDest.mMultibyte);
nsStr::Initialize(theTempStr,(eCharSize)aDest.mMultibyte);
nsIMemoryAgent* theAgent=(anAgent) ? anAgent : GetDefaultAgent();
EnsureCapacity(theTempStr,aNewLength,theAgent);