fix js warnings, 262885 patch by gautheri@noos.fr, r/sr=bienvenu

This commit is contained in:
bienvenu%nventure.com 2004-10-05 03:26:39 +00:00
parent 0be9149e8f
commit 7277c991a7

View File

@ -1111,14 +1111,14 @@ function GetScopeForFolder(folder)
function setupXFVirtualFolderSearch(folderUrisToSearch, searchTerms)
{
var count = new Object;
var i;
gSearchSession = Components.classes[searchSessionContractID].createInstance(Components.interfaces.nsIMsgSearchSession);
gMailSession = Components.classes[mailSessionContractID].getService(Components.interfaces.nsIMsgMailSession);
for (var i in folderUrisToSearch)
for (i in folderUrisToSearch)
{
var realFolderRes = GetResourceFromUri(folderUrisToSearch[i]);
var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder);
@ -1127,7 +1127,7 @@ function setupXFVirtualFolderSearch(folderUrisToSearch, searchTerms)
}
var termsArray = searchTerms.QueryInterface(Components.interfaces.nsISupportsArray);
for (var i = 0; i < termsArray.Count(); i++)
for (i = 0; i < termsArray.Count(); ++i)
gSearchSession.appendTerm(termsArray.GetElementAt(i).QueryInterface(Components.interfaces.nsIMsgSearchTerm));
}