Fix build breakage. Change OpenURL signature to take a char * instead of an AutoString because the interface was changed that way.

git-svn-id: svn://10.0.0.236/trunk@22067 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mscott%netscape.com 1999-02-26 04:16:59 +00:00
parent f12953d001
commit 175f212fe3
2 changed files with 7 additions and 3 deletions

View File

@ -259,10 +259,14 @@ MsgAppCoreOpenURL(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *
nsJSUtils::nsConvertJSValToString(b0, cx, argv[0]);
if (NS_OK != nativeThis->OpenURL(b0)) {
char * url = b0.ToNewCString();
if (NS_OK != nativeThis->OpenURL(url)) {
return JS_FALSE;
}
delete [] url;
*rval = JSVAL_VOID;
}
else {

View File

@ -67,7 +67,7 @@ public:
NS_IMETHOD Open3PaneWindow();
NS_IMETHOD GetNewMail();
NS_IMETHOD SetWindow(nsIDOMWindow* aWin);
NS_IMETHOD OpenURL(nsAutoString& url);
NS_IMETHOD OpenURL(char * url);
private:
@ -282,7 +282,7 @@ nsMsgAppCore::SetWindow(nsIDOMWindow* aWin)
}
NS_IMETHODIMP
nsMsgAppCore::OpenURL(nsAutoString& url)
nsMsgAppCore::OpenURL(char * url)
{
// here's where we call mscott's LoadURL...
// mscott: right now, this only works for news urls!!!!