From 0a8bb1708608eb3699efe77ef74116386d1bc78c Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Tue, 10 Aug 1999 22:45:44 +0000 Subject: [PATCH] nsString(eOneByte) -> nsCString work --- mailnews/news/src/nsNNTPNewsgroupList.cpp | 4 ++-- mailnews/news/src/nsNewsFolder.cpp | 6 +++--- mailnews/news/src/nsNewsMessage.cpp | 3 ++- mailnews/news/src/nsNewsUtils.cpp | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/mailnews/news/src/nsNNTPNewsgroupList.cpp b/mailnews/news/src/nsNNTPNewsgroupList.cpp index e2af63fc2b9c..121a33995b0c 100644 --- a/mailnews/news/src/nsNNTPNewsgroupList.cpp +++ b/mailnews/news/src/nsNNTPNewsgroupList.cpp @@ -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); diff --git a/mailnews/news/src/nsNewsFolder.cpp b/mailnews/news/src/nsNewsFolder.cpp index efcc1b5dada4..03d8be5043b7 100644 --- a/mailnews/news/src/nsNewsFolder.cpp +++ b/mailnews/news/src/nsNewsFolder.cpp @@ -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; diff --git a/mailnews/news/src/nsNewsMessage.cpp b/mailnews/news/src/nsNewsMessage.cpp index 9101186bf534..3230a0a6bf4e 100644 --- a/mailnews/news/src/nsNewsMessage.cpp +++ b/mailnews/news/src/nsNewsMessage.cpp @@ -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); diff --git a/mailnews/news/src/nsNewsUtils.cpp b/mailnews/news/src/nsNewsUtils.cpp index 1dcec2066358..419ead5b67b1 100644 --- a/mailnews/news/src/nsNewsUtils.cpp +++ b/mailnews/news/src/nsNewsUtils.cpp @@ -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