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

This commit is contained in:
jaggernaut@netscape.com
2001-09-29 08:28:41 +00:00
parent a7027c3102
commit a29a08f141
350 changed files with 1421 additions and 1389 deletions

View File

@@ -46,6 +46,7 @@
#include "nsWeakReference.h"
#include "nsVoidArray.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsIURL.h"
#include "nsIServiceManager.h"
#include "nsIURL.h"
@@ -262,7 +263,7 @@ extern "C" NS_EXPORT int DebugRobot(
if (NS_FAILED(rv)) return rv;
nsIURI *uri = nsnull;
char *uriStr = urlName->ToNewCString();
char *uriStr = ToNewCString(*urlName);
if (!uriStr) return NS_ERROR_OUT_OF_MEMORY;
rv = service->NewURI(uriStr, nsnull, &uri);
nsCRT::free(uriStr);