mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
fix js warnings, 262885 patch by gautheri@noos.fr, r/sr=bienvenu
This commit is contained in:
parent
0be9149e8f
commit
7277c991a7
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user