fixed bug in nsString; added recycler to nsString2
git-svn-id: svn://10.0.0.236/trunk@24808 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1097,6 +1097,7 @@ PRInt32 nsString::Left(nsString& aCopy,PRInt32 aCount) const {
|
||||
* @return number of chars copied
|
||||
*/
|
||||
PRInt32 nsString::Mid(nsString& aCopy,PRInt32 anOffset,PRInt32 aCount) const {
|
||||
aCopy.Truncate();
|
||||
if(anOffset<mLength) {
|
||||
aCount=(anOffset+aCount<=mLength) ? aCount : mLength-anOffset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user