remove nsString2

This commit is contained in:
bienvenu%netscape.com 1999-08-07 16:28:43 +00:00
parent 8f3473e855
commit 61dc733433
5 changed files with 4 additions and 6 deletions

View File

@ -18,7 +18,7 @@
#include "msgCore.h"
#include "nsAbAutoCompleteSession.h"
#include "nsString2.h"
#include "nsString.h"
#include "nsIMsgHeaderParser.h"
#include "nsRDFCID.h"
#include "nsIRDFService.h"
@ -160,7 +160,7 @@ NS_IMETHODIMP nsAbAutoCompleteSession::AutoComplete(const PRUnichar *aDocId, con
if (parser)
parser->MakeFullAddress(nsnull, m_searchNameCompletionEntryTable[nIndex].userName,
m_searchNameCompletionEntryTable[nIndex].emailAddress, &fullAddress);
nsString2 searchResult(fullAddress);
nsString searchResult(fullAddress);
// iterate over the table looking for a match
rv = aResultListener->OnAutoCompleteResult(aDocId, aSearchString, searchResult.GetUnicode());
break;

View File

@ -161,7 +161,6 @@ nsresult nsMsgFolderCache::OpenMDB(const char *dbName, PRBool create)
if (m_mdbEnv)
m_mdbEnv->SetAutoClear(PR_TRUE);
m_dbName = dbName;
#if defined(XP_PC) || defined(XP_MAC)
// UnixToNative(nativeFileName);
#endif

View File

@ -61,7 +61,6 @@ protected:
nsFileSpec m_dbFileSpec;
nsISupportsArray *m_cacheElements;
nsString2 m_dbName;
// mdb stuff
nsIMdbEnv *m_mdbEnv; // to be used in all the db calls.
nsIMdbStore *m_mdbStore;

View File

@ -1074,7 +1074,7 @@ NS_IMETHODIMP nsMsgNewsFolder::DeleteMessages(nsISupportsArray *messages,
if (NS_FAILED(rv)) return rv;
PRUnichar *newsgroupname;
rv = GetName(&newsgroupname);
nsString2 asciiName(newsgroupname, eOneByte);
nsCString asciiName(newsgroupname);
if (NS_FAILED(rv)) {
PR_FREEIF(hostname);
return rv;

View File

@ -270,7 +270,7 @@ NS_IMETHODIMP nsNntpUrl::GetMessageHeader(nsIMsgDBHdr ** aMsgHdr)
nsXPIDLCString hostName;
GetHost(getter_Copies(hostName));
nsString2 newsgroupURI(kNewsMessageRootURI, eOneByte);
nsCString newsgroupURI(kNewsMessageRootURI);
newsgroupURI.Append("/");
newsgroupURI.Append(hostName);
newsgroupURI.Append("/");