зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
2a128e77b6
Коммит
022ac24279
|
@ -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)))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче