From d1e965d2cadcaace8025943670abb26e33ac3a56 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Sat, 29 Jul 2006 05:40:50 +0000 Subject: [PATCH] bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately nsISupportsString -> nsISupportsCString nsISupportsWString -> nsISupportsString r=dougt, sr=jag --- suite/common/contentAreaUtils.js | 2 +- suite/common/openLocation.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/suite/common/contentAreaUtils.js b/suite/common/contentAreaUtils.js index d3d4ec2ca719..ab4a3422bf3a 100644 --- a/suite/common/contentAreaUtils.js +++ b/suite/common/contentAreaUtils.js @@ -420,7 +420,7 @@ nsHeaderSniffer.prototype = { try { this.contentEncodingType = encodingEnumerator.getNext(). - QueryInterface(Components.interfaces.nsISupportsString).data; + QueryInterface(Components.interfaces.nsISupportsCString).data; } catch (e) { } } diff --git a/suite/common/openLocation.js b/suite/common/openLocation.js index 35deec3cc517..68db655fd8c0 100644 --- a/suite/common/openLocation.js +++ b/suite/common/openLocation.js @@ -75,7 +75,7 @@ function onLoad() if (element) dialog.openAppList.selectedItem = element; dialog.input.value = pref.getComplexValue("general.open_location.last_url", - Components.interfaces.nsISupportsWString).data; + Components.interfaces.nsISupportsString).data; } catch(ex) { } @@ -125,11 +125,11 @@ function open() } if (pref) { - var str = Components.classes["@mozilla.org/supports-wstring;1"] - .createInstance(Components.interfaces.nsISupportsWString); + var str = Components.classes["@mozilla.org/supports-string;1"] + .createInstance(Components.interfaces.nsISupportsString); str.data = dialog.input.value; pref.setComplexValue("general.open_location.last_url", - Components.interfaces.nsISupportsWString, str); + Components.interfaces.nsISupportsString, str); pref.setIntPref("general.open_location.last_window_choice", dialog.openAppList.value); }