Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
#include "nsILinkHandler.h"
|
||||
#include "nsIHTMLDocument.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsReadableUtils.h"
|
||||
#include "nsNetUtil.h"
|
||||
#include "nsICharsetConverterManager.h"
|
||||
#include "nsEscape.h"
|
||||
@@ -569,7 +570,7 @@ nsIsIndexFrame::URLEncode(const nsString& aString, nsIUnicodeEncoder* encoder, n
|
||||
inBuf = UnicodeToNewBytes(aString.get(), aString.Length(), encoder);
|
||||
|
||||
if(nsnull == inBuf)
|
||||
inBuf = aString.ToNewCString();
|
||||
inBuf = ToNewCString(aString);
|
||||
|
||||
// convert to CRLF breaks
|
||||
char* convertedBuf = nsLinebreakConverter::ConvertLineBreaks(inBuf,
|
||||
|
||||
Reference in New Issue
Block a user