mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
update to sync with nsString2
This commit is contained in:
parent
7c92d40046
commit
f86b7f933d
@ -510,7 +510,7 @@ nsMsgAppCore::SetWindow(nsIDOMWindow* aWin)
|
|||||||
webShell->GetRootWebShell(rootWebShell);
|
webShell->GetRootWebShell(rootWebShell);
|
||||||
if (nsnull != rootWebShell)
|
if (nsnull != rootWebShell)
|
||||||
{
|
{
|
||||||
rootWebShell->FindChildWithName(webShellName, mWebShell);
|
rootWebShell->FindChildWithName(webShellName.GetUnicode(), mWebShell);
|
||||||
#ifdef NS_DEBUG
|
#ifdef NS_DEBUG
|
||||||
if (nsnull != mWebShell)
|
if (nsnull != mWebShell)
|
||||||
printf("nsMsgAppCore::SetWindow(): Got the webShell %s.\n", webShellName.ToNewCString());
|
printf("nsMsgAppCore::SetWindow(): Got the webShell %s.\n", webShellName.ToNewCString());
|
||||||
@ -818,7 +818,7 @@ nsMsgAppCore::NewFolder(nsIRDFCompositeDataSource *database, nsIDOMXULElement *p
|
|||||||
nsIRDFLiteral *nameLiteral;
|
nsIRDFLiteral *nameLiteral;
|
||||||
nsIRDFResource *newFolderResource;
|
nsIRDFResource *newFolderResource;
|
||||||
|
|
||||||
gRDFService->GetLiteral(nameStr, &nameLiteral);
|
gRDFService->GetLiteral(nameStr.GetUnicode(), &nameLiteral);
|
||||||
nameArray->AppendElement(nameLiteral);
|
nameArray->AppendElement(nameLiteral);
|
||||||
if(NS_SUCCEEDED(rv = gRDFService->GetResource("http://home.netscape.com/NC-rdf#NewFolder", &newFolderResource)))
|
if(NS_SUCCEEDED(rv = gRDFService->GetResource("http://home.netscape.com/NC-rdf#NewFolder", &newFolderResource)))
|
||||||
{
|
{
|
||||||
|
@ -83,7 +83,7 @@ void createNode(nsString& str, nsIRDFNode **node)
|
|||||||
NS_WITH_SERVICE(nsIRDFService, rdf, kRDFServiceCID, &rv);
|
NS_WITH_SERVICE(nsIRDFService, rdf, kRDFServiceCID, &rv);
|
||||||
if (NS_FAILED(rv)) return; // always check this before proceeding
|
if (NS_FAILED(rv)) return; // always check this before proceeding
|
||||||
nsIRDFLiteral * value;
|
nsIRDFLiteral * value;
|
||||||
if(NS_SUCCEEDED(rdf->GetLiteral((const PRUnichar*)str, &value))) {
|
if(NS_SUCCEEDED(rdf->GetLiteral(str.GetUnicode(), &value))) {
|
||||||
*node = value;
|
*node = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -696,7 +696,7 @@ nsresult nsSmtpUrl::GetUserPassword(const nsString ** aUserPassword)
|
|||||||
nsresult nsSmtpUrl::SetUserEmailAddress(const nsString& aUserName)
|
nsresult nsSmtpUrl::SetUserEmailAddress(const nsString& aUserName)
|
||||||
{
|
{
|
||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
if (aUserName)
|
if (aUserName.GetUnicode())
|
||||||
{
|
{
|
||||||
m_userName = aUserName;
|
m_userName = aUserName;
|
||||||
if (m_userNameString)
|
if (m_userNameString)
|
||||||
@ -710,7 +710,7 @@ nsresult nsSmtpUrl::SetUserEmailAddress(const nsString& aUserName)
|
|||||||
nsresult nsSmtpUrl::SetUserPassword(const nsString& aUserPassword)
|
nsresult nsSmtpUrl::SetUserPassword(const nsString& aUserPassword)
|
||||||
{
|
{
|
||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
if (aUserPassword)
|
if (aUserPassword.GetUnicode())
|
||||||
{
|
{
|
||||||
m_userPassword = aUserPassword;
|
m_userPassword = aUserPassword;
|
||||||
}
|
}
|
||||||
|
@ -2360,7 +2360,7 @@ nsMsgHdr * nsMsgDatabase::GetMsgHdrForMessageID(nsString2 &msgID)
|
|||||||
|
|
||||||
nsString messageId;
|
nsString messageId;
|
||||||
(void)pHeader->GetMessageId(messageId);
|
(void)pHeader->GetMessageId(messageId);
|
||||||
if (msgID.Equals(messageId, PR_FALSE))
|
if (msgID.Equals(messageId.GetUnicode(), PR_FALSE))
|
||||||
break;
|
break;
|
||||||
NS_RELEASE(pHeader);
|
NS_RELEASE(pHeader);
|
||||||
pHeader = nsnull;
|
pHeader = nsnull;
|
||||||
|
@ -207,7 +207,7 @@ NS_IMETHODIMP nsMailboxProtocol::OnStopBinding(nsIURL* aURL, nsresult aStatus, c
|
|||||||
nsFileURL fileURL(filePath);
|
nsFileURL fileURL(filePath);
|
||||||
char * message_path_url = PL_strdup(fileURL.GetAsString());
|
char * message_path_url = PL_strdup(fileURL.GetAsString());
|
||||||
|
|
||||||
m_displayConsumer->LoadURL(nsAutoString(message_path_url), nsnull, PR_TRUE, nsURLReload, 0);
|
m_displayConsumer->LoadURL(nsAutoString(message_path_url).GetUnicode(), nsnull, PR_TRUE, nsURLReload, 0);
|
||||||
|
|
||||||
PR_FREEIF(message_path_url);
|
PR_FREEIF(message_path_url);
|
||||||
}
|
}
|
||||||
|
@ -2052,7 +2052,7 @@ PRInt32 nsNNTPProtocol::ReadArticle(nsIInputStream * inputStream, PRUint32 lengt
|
|||||||
// to load the webshell!
|
// to load the webshell!
|
||||||
// mWebShell->LoadURL(nsAutoString("http://www.netscape.com"),
|
// mWebShell->LoadURL(nsAutoString("http://www.netscape.com"),
|
||||||
// nsnull, PR_TRUE, nsURLReload, 0);
|
// nsnull, PR_TRUE, nsURLReload, 0);
|
||||||
m_displayConsumer->LoadURL(nsAutoString(fileUrl), nsnull, PR_TRUE, nsURLReload, 0);
|
m_displayConsumer->LoadURL(nsAutoString(fileUrl).GetUnicode(), nsnull, PR_TRUE, nsURLReload, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// mscott: we may need to release our reference on the url....
|
// mscott: we may need to release our reference on the url....
|
||||||
|
Loading…
x
Reference in New Issue
Block a user