mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 02:25:34 +00:00
nsString(eOneByte) -> nsCString work
This commit is contained in:
parent
260934892f
commit
0a8bb17086
@ -233,8 +233,8 @@ nsNNTPNewsgroupList::GetRangeOfArtsToDownload(
|
||||
rv = m_newsDB->GetDBFolderInfo(getter_AddRefs(newsGroupInfo));
|
||||
if (NS_SUCCEEDED(rv) && newsGroupInfo)
|
||||
{
|
||||
nsAutoString knownArtsString (eOneByte);
|
||||
nsMsgKey mark;
|
||||
nsAutoString knownArtsString(eOneByte);
|
||||
nsMsgKey mark;
|
||||
newsGroupInfo->GetKnownArtsSet(&knownArtsString);
|
||||
|
||||
rv = newsGroupInfo->GetHighWater(&mark);
|
||||
|
@ -226,7 +226,7 @@ nsMsgNewsFolder::AddSubfolder(nsAutoString name, nsIMsgFolder **child, char *set
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
#ifdef DEBUG_NEWS
|
||||
nsString nameStr(name,eOneByte);
|
||||
nsCString nameStr(name);
|
||||
printf("AddSubfolder(%s,??,%s)\n",nameStr.GetBuffer(),setStr);
|
||||
#endif
|
||||
|
||||
@ -236,7 +236,7 @@ nsMsgNewsFolder::AddSubfolder(nsAutoString name, nsIMsgFolder **child, char *set
|
||||
if(NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
nsAutoString uri (eOneByte);
|
||||
nsCString uri("");
|
||||
uri.Append(mURI);
|
||||
uri.Append('/');
|
||||
|
||||
@ -533,7 +533,7 @@ NS_IMETHODIMP nsMsgNewsFolder::BuildFolderURL(char **url)
|
||||
rv = pathSpec->GetFileSpec(&path);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
#if defined(XP_MAC)
|
||||
nsAutoString tmpPath((nsFilePath)path, eOneByte); //ducarroz: please don't cast a nsFilePath to char* on Mac
|
||||
nsAutoString tmpPath((nsFilePath)path, eOneByte); //ducarroz: please don't cast a nsFilePath to char* on Mac
|
||||
*url = PR_smprintf("%s%s", urlScheme, tmpPath.GetBuffer());
|
||||
#else
|
||||
const char *pathName = path;
|
||||
|
@ -74,7 +74,8 @@ nsresult nsNewsMessage::GetFolderFromURI(nsIMsgFolder **folder)
|
||||
nsString messageFolderURIStr;
|
||||
nsMsgKey key;
|
||||
nsParseNewsMessageURI(uri, messageFolderURIStr, &key);
|
||||
nsAutoString folderOnly, folderURIStr (eOneByte);
|
||||
nsString folderOnly(eOneByte);
|
||||
nsString folderURIStr(eOneByte);
|
||||
|
||||
if (messageFolderURIStr.Find(kNewsMessageRootURI) != ((PRInt32)-1)) {
|
||||
messageFolderURIStr.Right(folderOnly, messageFolderURIStr.Length() - kNewsMessageRootURILen);
|
||||
|
@ -219,7 +219,7 @@ nsresult nsBuildNewsMessageURI(const char *baseURI, PRUint32 key, char** uri)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
// need to convert news://hostname/.. to news_message://hostname/..
|
||||
|
||||
nsAutoString tailURI(baseURI, eOneByte);
|
||||
nsCString tailURI(baseURI);
|
||||
|
||||
// chop off news:/
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user