mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
remove nsString2
This commit is contained in:
parent
8f3473e855
commit
61dc733433
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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("/");
|
||||
|
Loading…
x
Reference in New Issue
Block a user