Fix strict warnings in stringbundleBindings.xml. bug=56752, r=ben, a=brendan

This commit is contained in:
disttsc%bart.nl 2000-10-16 12:59:11 +00:00
Родитель fc6451ac0a
Коммит 203701d99a
1 изменённых файлов: 5 добавлений и 7 удалений

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

@ -18,6 +18,7 @@
dump("<StringBundle> Error: Failed to get string from bundle. Are you using the right key?\n");
dump("The key you provided was: " + aStringKey + "\n");
dump("The exception thrown was:\n" + e + "\n");
return null;
}
]]>
</body>
@ -32,13 +33,12 @@
<setter>
<![CDATA[
try {
strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService();
var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService();
strBundleService = strBundleService.QueryInterface(Components.interfaces.nsIStringBundleService);
this._bundle = strBundleService.CreateBundle(val, this.appLocale);
}
catch (ex) {
return null;
}
this._bundle = strBundleService.CreateBundle(val, this.appLocale);
]]>
</setter>
</property>
@ -46,16 +46,14 @@
<property name="appLocale">
<getter>
<![CDATA[
var applicationLocale = null;
try {
localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"].getService();
var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"].getService();
localeService = localeService.QueryInterface(Components.interfaces.nsILocaleService);
return localeService.GetApplicationLocale();
}
catch (ex) {
return null;
}
applicationLocale = localeService.GetApplicationLocale();
return applicationLocale;
]]>
</getter>
</property>