mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
Avoid unnecessary string creation.
This commit is contained in:
parent
ea1e157289
commit
9a0997d28b
3 changed files with 19 additions and 5 deletions
|
|
@ -452,8 +452,8 @@ FileReader::GetAsText(Blob *aBlob,
|
|||
}
|
||||
}
|
||||
|
||||
nsDependentCSubstring data(aFileData, aDataLen);
|
||||
return nsContentUtils::ConvertStringFromEncoding(encoding, data, aResult);
|
||||
return nsContentUtils::ConvertStringFromEncoding(
|
||||
encoding, aFileData, aDataLen, aResult);
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue