More uses of EmptyC?String(). Bug 232691, patch by Charles Fenwick

<clf03f@garnet.acns.fsu.edu>, r+sr=bzbarsky, a=bsmedberg
This commit is contained in:
bzbarsky%mit.edu 2005-07-15 21:41:47 +00:00
Родитель 2a128e77b6
Коммит 022ac24279
6 изменённых файлов: 8 добавлений и 8 удалений

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

@ -878,7 +878,7 @@ static void SCProxiesChangedCallback(SCDynamicStoreRef store, CFArrayRef changed
return nil;
nsCOMPtr<nsILocalFile> profDirFile;
rv = NS_NewNativeLocalFile(nsCString(), PR_TRUE, getter_AddRefs(profDirFile));
rv = NS_NewNativeLocalFile(EmptyCString(), PR_TRUE, getter_AddRefs(profDirFile));
if (NS_SUCCEEDED(rv)) {
// profDirDesc is ASCII so no loss
rv = profDirFile->SetPersistentDescriptor(NS_LossyConvertUCS2toASCII(profDirDesc));

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

@ -292,7 +292,7 @@ nsHTMLEditor::InsertHTMLWithContext(const nsAString & aInputString,
// pasting just the cell text which is what we want anyway.
// A paste from an excel cell always starts with a new line, two spaces and then the td tag
if (StringBeginsWith(aInputString, NS_LITERAL_STRING("\n <td")))
contextStr = NS_LITERAL_STRING("");
contextStr.Truncate();
#endif
res = CreateDOMFragmentFromPaste(aInputString, contextStr, aInfoStr,

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

@ -350,7 +350,7 @@ nsXFormsUtils::GetNodeContext(nsIDOMElement *aElement,
NS_ENSURE_STATE(modelInt);
nsCOMPtr<nsIDOMDocument> instanceDoc;
modelInt->GetInstanceDocument(NS_LITERAL_STRING(""),
modelInt->GetInstanceDocument(EmptyString(),
getter_AddRefs(instanceDoc));
NS_ENSURE_STATE(instanceDoc);

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

@ -166,7 +166,7 @@ wsLoadFromStreamEvent::handleEvent ()
rv = mNativeBrowserControl->mWindow->LoadStream(mShim, uri,
nsDependentCString(mContentType),
NS_LITERAL_CSTRING(""),
EmptyCString(),
nsnull);
// make it so we don't issue multiple LoadStream calls
// for this InputStreamShim instance.

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

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

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

@ -196,7 +196,7 @@ nsFilePicker::GetLocalFiles(const nsString& inTitle, PRBool inAllowMultiple, nsC
if (theURL)
{
nsCOMPtr<nsILocalFile> localFile;
NS_NewLocalFile(nsString(), PR_TRUE, getter_AddRefs(localFile));
NS_NewLocalFile(EmptyString(), PR_TRUE, getter_AddRefs(localFile));
nsCOMPtr<nsILocalFileMac> macLocalFile = do_QueryInterface(localFile);
if (macLocalFile && NS_SUCCEEDED(macLocalFile->InitWithCFURL((CFURLRef)theURL)))
outFiles.AppendObject(localFile);
@ -250,7 +250,7 @@ nsFilePicker::GetLocalFolder(const nsString& inTitle, nsILocalFile** outFile)
if (theURL)
{
nsCOMPtr<nsILocalFile> localFile;
NS_NewLocalFile(nsString(), PR_TRUE, getter_AddRefs(localFile));
NS_NewLocalFile(EmptyString(), PR_TRUE, getter_AddRefs(localFile));
nsCOMPtr<nsILocalFileMac> macLocalFile = do_QueryInterface(localFile);
if (macLocalFile && NS_SUCCEEDED(macLocalFile->InitWithCFURL((CFURLRef)theURL)))
{
@ -304,7 +304,7 @@ nsFilePicker::PutLocalFile(const nsString& inTitle, const nsString& inDefaultNam
if (fileURL)
{
nsCOMPtr<nsILocalFile> localFile;
NS_NewLocalFile(nsString(), PR_TRUE, getter_AddRefs(localFile));
NS_NewLocalFile(EmptyString(), PR_TRUE, getter_AddRefs(localFile));
nsCOMPtr<nsILocalFileMac> macLocalFile = do_QueryInterface(localFile);
if (macLocalFile && NS_SUCCEEDED(macLocalFile->InitWithCFURL((CFURLRef)fileURL)))
{