зеркало из https://github.com/mozilla/pjs.git
chatzilla only
bug 113683, strict warning fixes, r=ssieb
This commit is contained in:
Родитель
4c3f787bbd
Коммит
28396243e1
|
@ -189,8 +189,9 @@ function readIRCPrefs (rootNode)
|
||||||
|
|
||||||
function writeIRCPrefs (rootNode)
|
function writeIRCPrefs (rootNode)
|
||||||
{
|
{
|
||||||
pref = Components.classes["@mozilla.org/preferences-service;1"]
|
const PREF_CTRID = "@mozilla.org/preferences-service;1";
|
||||||
.getService(Components.interfaces.nsIPrefBranch);
|
const nsIPrefBranch = Components.interfaces.nsIPrefBranch;
|
||||||
|
var pref = Components.classes[PREF_CTRID].getService(nsIPrefBranch);
|
||||||
if(!pref)
|
if(!pref)
|
||||||
throw ("Can't find pref component.");
|
throw ("Can't find pref component.");
|
||||||
|
|
||||||
|
|
|
@ -1285,7 +1285,7 @@ function gotoIRCURL (url)
|
||||||
client.onInputServer ({inputData: url.host + " " + url.port +
|
client.onInputServer ({inputData: url.host + " " + url.port +
|
||||||
" " + pass});
|
" " + pass});
|
||||||
net = client.networks[url.host];
|
net = client.networks[url.host];
|
||||||
if (!net.pendingURLs)
|
if (!("pendingURLs" in net))
|
||||||
net.pendingURLs = new Array();
|
net.pendingURLs = new Array();
|
||||||
net.pendingURLs.push (url);
|
net.pendingURLs.push (url);
|
||||||
return;
|
return;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче