Remove #define nsString2 nsString and #define nsAutoString2 nsAutoString and fix last few uses of them. r=dbradley, rs=scc

This commit is contained in:
jaggernaut%netscape.com 2001-09-05 12:42:54 +00:00
Родитель b90d3cab95
Коммит 56490a5e26
4 изменённых файлов: 5 добавлений и 10 удалений

Просмотреть файл

@ -33,6 +33,7 @@
#include "nsIDirectoryService.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsEscape.h"
#include "nsSyncDecoderRing.h"
#include "plstr.h"
@ -816,7 +817,7 @@ nsAbSync::GenerateProtocolForCard(nsIAbCard *aCard, PRBool aAddId, nsString &pro
char *pVal = PR_smprintf("phone%d", phoneCount);
if (pVal)
{
char *utfString = nsString2(aName).ToNewUTF8String();
char *utfString = ToNewUTF8String(nsDependentString(aName));
// Now, URL Encode the value string....
char *myTStr = nsEscape(utfString, url_Path);
@ -846,7 +847,7 @@ nsAbSync::GenerateProtocolForCard(nsIAbCard *aCard, PRBool aAddId, nsString &pro
}
else // Good ole' normal tag...
{
char *utfString = nsString2(aName).ToNewUTF8String();
char *utfString = ToNewUTF8String(nsDependentString(aName));
// Now, URL Encode the value string....
char *myTStr = nsEscape(utfString, url_Path);
@ -887,7 +888,7 @@ nsAbSync::GenerateProtocolForCard(nsIAbCard *aCard, PRBool aAddId, nsString &pro
// Just some sanity...
if (aName)
{
char *utfString = nsString2(aName).ToNewUTF8String();
char *utfString = ToNewUTF8String(nsDependentString(aName));
// Now, URL Encode the value string....
char *myTStr = nsEscape(utfString, url_Path);

Просмотреть файл

@ -37,7 +37,7 @@
#include "nsIMIMEService.h"
#include "nsMimeTypes.h"
#include "nsNetUtil.h"
#include "nsString2.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "plstr.h"
#include "prprf.h"

Просмотреть файл

@ -64,9 +64,6 @@
class nsISizeOfHandler;
#define nsString2 nsString
#define nsAutoString2 nsAutoString
class NS_COM nsString :
public nsAFlatString,
public nsStr {

Просмотреть файл

@ -64,9 +64,6 @@
class nsISizeOfHandler;
#define nsString2 nsString
#define nsAutoString2 nsAutoString
class NS_COM nsString :
public nsAFlatString,
public nsStr {