firefox part of bug 232691 - replace nsString() nsAutoString() and friends with EmptyC?String(), patch by Charles Fenwick (clf03f@garnet.acns.fsu.edu), r=mconnor

git-svn-id: svn://10.0.0.236/trunk@156812 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mconnor%myrealbox.com 2004-05-23 19:45:17 +00:00
parent a1c3a971e8
commit ac2d3f342c
3 changed files with 6 additions and 6 deletions

View File

@ -2129,7 +2129,7 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
// click open the download manager and the items they downloaded will have
// been removed.
alerts->ShowAlertNotification(DOWNLOAD_MANAGER_ALERT_ICON, title, message, !removeWhenDone,
NS_LITERAL_STRING("").get(), NS_STATIC_CAST(nsIAlertListener*, mDownloadManager));
EmptyString().get(), NS_STATIC_CAST(nsIAlertListener*, mDownloadManager));
}
}
}

View File

@ -521,7 +521,7 @@ nsPasswordManager::FindEntryEnumerator(const nsACString& aKey,
rv = manager->FindPasswordEntryInternal(aEntry->head,
context->username,
context->password,
nsString(),
EmptyString(),
&entry);
if (NS_SUCCEEDED(rv) && entry) {
@ -552,7 +552,7 @@ nsPasswordManager::FindPasswordEntry(const nsACString& aHostURI,
nsresult rv = FindPasswordEntryInternal(hashEnt->head,
aUsername,
aPassword,
nsString(),
EmptyString(),
&entry);
if (NS_SUCCEEDED(rv) && entry) {
@ -1713,7 +1713,7 @@ nsPasswordManager::EnsureDecoderRing()
token->GetNeedsUserInit(&needUserInit);
if (needUserInit)
token->InitPassword(NS_LITERAL_STRING("").get());
token->InitPassword(EmptyString().get());
}
}
@ -1813,7 +1813,7 @@ nsPasswordManager::FillPassword(nsIDOMEvent* aEvent)
return NS_OK;
SignonDataEntry* foundEntry;
FindPasswordEntryInternal(hashEnt->head, userValue, nsString(),
FindPasswordEntryInternal(hashEnt->head, userValue, EmptyString(),
fieldName, &foundEntry);
if (!foundEntry)

View File

@ -454,7 +454,7 @@ static nsresult OpenWindow(const nsAFlatCString& aChromeURL,
static nsresult OpenWindow(const nsAFlatCString& aChromeURL,
PRInt32 aWidth, PRInt32 aHeight)
{
return OpenWindow(aChromeURL, NS_LITERAL_STRING(""), aWidth, aHeight);
return OpenWindow(aChromeURL, EmptyString(), aWidth, aHeight);
}
static nsresult OpenWindow(const nsAFlatCString& aChromeURL,