зеркало из https://github.com/mozilla/gecko-dev.git
Quiet annoying warning on HP by using the two-step NS_STATIC_CAST that is really meant here. r=jag sr=brendan b=107052
This commit is contained in:
Родитель
bfb2f49916
Коммит
f40a3018a4
|
@ -336,7 +336,7 @@ NS_GetSpecialDirectory(const char* specialDirName, nsIFile* *result)
|
|||
rv = serv->Get(specialDirName, NS_GET_IID(nsIFile), getter_AddRefs(dir));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
*result = (nsIFile*)dir.get();
|
||||
*result = NS_STATIC_CAST(nsIFile*, NS_STATIC_CAST(nsISupports*, dir));
|
||||
if (*result)
|
||||
NS_ADDREF(*result);
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче