nsString(eOneByte) -> nsCString work

This commit is contained in:
sspitzer%netscape.com 1999-08-10 22:45:44 +00:00
parent 260934892f
commit 0a8bb17086
4 changed files with 8 additions and 7 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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