mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
fix for bug 112209 - remove last consumers of nsStr:: routines
r=dbaron, sr=jst
This commit is contained in:
parent
8ab2754b57
commit
30a6af4a50
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user