1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-04 12:23:35 +02:00

Fix some minor function formatting faux pas.

This commit is contained in:
Doug Kearns
2009-05-29 14:46:50 +10:00
parent 5e760406ab
commit cd3364197f
5 changed files with 13 additions and 9 deletions

View File

@@ -736,7 +736,8 @@ function IO() //{{{
writeFile: function (file, buf, mode, perms, encoding)
{
let ofstream = Cc["@mozilla.org/network/file-output-stream;1"].createInstance(Ci.nsIFileOutputStream);
function getStream(defaultChar) {
function getStream(defaultChar)
{
let stream = Cc["@mozilla.org/intl/converter-output-stream;1"].createInstance(Ci.nsIConverterOutputStream);
stream.init(ofstream, encoding, 0, defaultChar);
return stream;