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
Родитель 895682d4ed
Коммит e023c4ded4
4 изменённых файлов: 5 добавлений и 10 удалений

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

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

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

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

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

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

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

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