fix for bug 112209 - remove last consumers of nsStr:: routines

r=dbaron, sr=jst
This commit is contained in:
alecf%netscape.com 2002-01-25 00:26:44 +00:00
parent 8ab2754b57
commit 30a6af4a50
5 changed files with 3 additions and 7 deletions

View File

@ -264,7 +264,7 @@ nsBulletFrame::Paint(nsIPresContext* aPresContext,
GetListItemText(aPresContext, *myList, text);
if (NS_STYLE_DIRECTION_RTL == vis->mDirection) {
nsStr::Delete2(text, 0, 1);
text.Cut(0, 1);
text.Append(NS_LITERAL_STRING("."));
}
break;

View File

@ -264,7 +264,7 @@ nsBulletFrame::Paint(nsIPresContext* aPresContext,
GetListItemText(aPresContext, *myList, text);
if (NS_STYLE_DIRECTION_RTL == vis->mDirection) {
nsStr::Delete2(text, 0, 1);
text.Cut(0, 1);
text.Append(NS_LITERAL_STRING("."));
}
break;

View File

@ -2853,7 +2853,7 @@ nsMsgCompose::LoadDataFromFile(nsFileSpec& fSpec, nsString &sigData)
PRInt32 metaCharsetOffset = sigData.Find(metaCharset,PR_TRUE,0,-1);
if (metaCharsetOffset != kNotFound)
nsStr::Delete2(sigData, metaCharsetOffset, metaCharset.Length());
sigData.Cut(metaCharsetOffset, metaCharset.Length());
}
PR_FREEIF(readBuf);

View File

@ -359,10 +359,8 @@ protected:
* @param aCount tells us the (max) # of chars to delete
*/
static void Delete1(nsStr& aDest,PRUint32 aDestOffset,PRUint32 aCount);
public:
static void Delete2(nsStr& aDest,PRUint32 aDestOffset,PRUint32 aCount);
protected:
/**
* helper routines for Delete1, Delete2
*/

View File

@ -359,10 +359,8 @@ protected:
* @param aCount tells us the (max) # of chars to delete
*/
static void Delete1(nsStr& aDest,PRUint32 aDestOffset,PRUint32 aCount);
public:
static void Delete2(nsStr& aDest,PRUint32 aDestOffset,PRUint32 aCount);
protected:
/**
* helper routines for Delete1, Delete2
*/