warnings fixes, and fix for #21901, all password dialogs to have titles

if the user passes one in, or use "Password" if they pass null.


git-svn-id: svn://10.0.0.236/trunk@56308 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sspitzer%netscape.com
1999-12-21 23:03:29 +00:00
parent df88898095
commit 2e52c17f46
21 changed files with 54 additions and 24 deletions

View File

@@ -518,7 +518,8 @@ NS_IMETHODIMP nsNetSupportDialog::PromptUsernameAndPassword(const PRUnichar *tex
#endif
}
NS_IMETHODIMP nsNetSupportDialog::PromptPassword(const PRUnichar *text,
NS_IMETHODIMP nsNetSupportDialog::PromptPassword(const PRUnichar *text,
const PRUnichar *windowTitle,
PRUnichar **pwd,
PRBool *returnValue)
{
@@ -532,7 +533,7 @@ NS_IMETHODIMP nsNetSupportDialog::PromptPassword(const PRUnichar *text,
rv = nsComponentManager::CreateInstance( kCommonDialogsCID,0, nsICommonDialogs::GetIID(),
(void**)&dialogService );
if( NS_SUCCEEDED ( rv ) )
rv = dialogService->PromptPassword( window, NULL,text, pwd, returnValue );
rv = dialogService->PromptPassword( window, windowTitle,text, pwd, returnValue );
}
return rv;