removed reference to nsString2
git-svn-id: svn://10.0.0.236/trunk@64749 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#ifndef nsDateTimeChannel_h___
|
||||
#define nsDateTimeChannel_h___
|
||||
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef nsFingerChannel_h___
|
||||
#define nsFingerChannel_h___
|
||||
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "nsMIMEService.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
#include "nsMIMEInfoImpl.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "nsIDataChannel.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIEventQueue.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsIStreamListener.h"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#ifndef nsDateTimeChannel_h___
|
||||
#define nsDateTimeChannel_h___
|
||||
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef nsFingerChannel_h___
|
||||
#define nsFingerChannel_h___
|
||||
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
#include "nsILoadGroup.h"
|
||||
#include "nsIInputStream.h"
|
||||
#include "nsIInterfaceRequestor.h"
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#define nsKeywordProtocolHandler_h___
|
||||
|
||||
#include "nsIProtocolHandler.h"
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
|
||||
#define NS_KEYWORDPROTOCOLHANDLER_CID \
|
||||
{ /* 2E4233C0-6FB4-11d3-A180-0050041CAF44 */ \
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#include "nsString2.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIServiceManager.h"
|
||||
|
||||
#include "nsSocketProviderService.h"
|
||||
|
||||
@@ -59,14 +59,14 @@ public:
|
||||
nsresult rv = aFromStream->Read(buf, 1024, &read);
|
||||
if (NS_FAILED(rv) || read == 0) return rv;
|
||||
|
||||
nsString2 to(aToType);
|
||||
nsString to(aToType);
|
||||
char *toMIME = to.ToNewCString();
|
||||
char toChar = *toMIME;
|
||||
|
||||
for (PRUint32 i = 0; i < read; i++)
|
||||
buf[i] = toChar;
|
||||
|
||||
nsString2 convDataStr(buf);
|
||||
nsString convDataStr(buf);
|
||||
nsIInputStream *inputData = nsnull;
|
||||
nsISupports *inputDataSup = nsnull;
|
||||
|
||||
@@ -312,7 +312,7 @@ main(int argc, char* argv[])
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// use a dummy string as a stream to convert.
|
||||
nsString2 dummyData("aaaaaaaaaaaaaaa");
|
||||
nsString dummyData("aaaaaaaaaaaaaaa");
|
||||
nsIInputStream *inputData = nsnull;
|
||||
nsISupports *inputDataSup = nsnull;
|
||||
nsIInputStream *convertedData = nsnull;
|
||||
@@ -321,9 +321,9 @@ main(int argc, char* argv[])
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRUnichar *from, *to;
|
||||
nsString2 fromStr("a/foo");
|
||||
nsString fromStr("a/foo");
|
||||
from = fromStr.ToNewUnicode();
|
||||
nsString2 toStr ("e/foo");
|
||||
nsString toStr ("e/foo");
|
||||
to = toStr.ToNewUnicode();
|
||||
|
||||
rv = inputDataSup->QueryInterface(NS_GET_IID(nsIInputStream), (void**)&inputData);
|
||||
|
||||
Reference in New Issue
Block a user