mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 10:08:41 +00:00
freezing nsIFile/nsILocalFile API (b=129279)
r=dougt sr=alecf
This commit is contained in:
parent
0172201061
commit
838fb89c78
@ -41,7 +41,7 @@ interface nsISimpleEnumerator;
|
||||
* be safely passed to javascript via xpconnect. Therefore, the "native
|
||||
* methods" are not scriptable.
|
||||
*
|
||||
* @status UNDER_REVIEW
|
||||
* @status FROZEN
|
||||
*/
|
||||
[scriptable, uuid(c8c0a080-0868-11d3-915f-d9d889d48e3c)]
|
||||
interface nsIFile : nsISupports
|
||||
|
@ -42,7 +42,7 @@
|
||||
*
|
||||
* It follows the same string conventions as nsIFile.
|
||||
*
|
||||
* @status UNDER_REVIEW
|
||||
* @status FROZEN
|
||||
*/
|
||||
[scriptable, uuid(aa610f20-a889-11d3-8c81-000064657374)]
|
||||
interface nsILocalFile : nsIFile
|
||||
|
@ -1611,7 +1611,7 @@ convert_native_to_ucs2(const char *input, unsigned inputLen, nsAString &result)
|
||||
result.Truncate();
|
||||
|
||||
// allocate space for largest possible result
|
||||
result.SetCapacity(inputLen + 1);
|
||||
result.SetLength(inputLen);
|
||||
|
||||
nsAString::iterator start;
|
||||
result.BeginWriting(start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user