From 3fbd23b07e11af3ca6db72f74949f1b8c545af4c Mon Sep 17 00:00:00 2001 From: "dcone%netscape.com" Date: Mon, 22 Mar 1999 21:52:57 +0000 Subject: [PATCH] fixed small mac bug git-svn-id: svn://10.0.0.236/trunk@24702 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/base/src/nsStr.cpp | 2 +- mozilla/string/obsolete/nsStr.cpp | 2 +- mozilla/xpcom/ds/nsStr.cpp | 2 +- mozilla/xpcom/string/obsolete/nsStr.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/base/src/nsStr.cpp b/mozilla/base/src/nsStr.cpp index d7b59f7f304..4aebbbfe861 100644 --- a/mozilla/base/src/nsStr.cpp +++ b/mozilla/base/src/nsStr.cpp @@ -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); diff --git a/mozilla/string/obsolete/nsStr.cpp b/mozilla/string/obsolete/nsStr.cpp index d7b59f7f304..4aebbbfe861 100644 --- a/mozilla/string/obsolete/nsStr.cpp +++ b/mozilla/string/obsolete/nsStr.cpp @@ -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); diff --git a/mozilla/xpcom/ds/nsStr.cpp b/mozilla/xpcom/ds/nsStr.cpp index d7b59f7f304..4aebbbfe861 100644 --- a/mozilla/xpcom/ds/nsStr.cpp +++ b/mozilla/xpcom/ds/nsStr.cpp @@ -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); diff --git a/mozilla/xpcom/string/obsolete/nsStr.cpp b/mozilla/xpcom/string/obsolete/nsStr.cpp index d7b59f7f304..4aebbbfe861 100644 --- a/mozilla/xpcom/string/obsolete/nsStr.cpp +++ b/mozilla/xpcom/string/obsolete/nsStr.cpp @@ -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);