Bug 226011 - Stop bogus warning in nsGREDirServiceProvider::GetFile

r=dougt a1.6b=mkaply
This commit is contained in:
bsmedberg%covad.net 2003-11-25 19:42:00 +00:00
Родитель 2bd4985c99
Коммит 464a43b564
1 изменённых файлов: 5 добавлений и 13 удалений

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

@ -98,9 +98,6 @@ NS_IMPL_ISUPPORTS1(nsGREDirServiceProvider, nsIDirectoryServiceProvider)
NS_IMETHODIMP
nsGREDirServiceProvider::GetFile(const char *prop, PRBool *persistant, nsIFile **_retval)
{
nsCOMPtr<nsILocalFile> localFile;
nsresult rv = NS_ERROR_FAILURE;
*_retval = nsnull;
*persistant = PR_TRUE;
@ -110,20 +107,15 @@ nsGREDirServiceProvider::GetFile(const char *prop, PRBool *persistant, nsIFile *
// with which it's compatible with and intends to be "run against"
// that GRE.
//
// Please see http://www.mozilla.org/projects/embedding/MRE.html
// Please see http://www.mozilla.org/projects/embedding/GRE.html
// for more info on GRE.
//---------------------------------------------------------------
if(strcmp(prop, NS_GRE_DIR) == 0)
{
rv = GRE_GetGREDirectory(getter_AddRefs(localFile));
return GRE_GetGREDirectory(_retval);
}
NS_ENSURE_SUCCESS(rv, rv);
if (!localFile)
return NS_ERROR_UNEXPECTED;
return localFile->QueryInterface(NS_GET_IID(nsIFile), (void**)_retval);
return NS_ERROR_FAILURE;
}
//*****************************************************************************