bug 113683, strict warning fixes, r=ssieb
This commit is contained in:
rginda%netscape.com 2001-12-06 00:10:07 +00:00
Родитель 4c3f787bbd
Коммит 28396243e1
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -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;