зеркало из https://github.com/mozilla/gecko-dev.git
Bug 226011 - Stop bogus warning in nsGREDirServiceProvider::GetFile
r=dougt a1.6b=mkaply
This commit is contained in:
Родитель
2bd4985c99
Коммит
464a43b564
|
@ -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;
|
||||
}
|
||||
|
||||
//*****************************************************************************
|
||||
|
|
Загрузка…
Ссылка в новой задаче