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:
parent
f12953d001
commit
175f212fe3
@ -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 {
|
||||
|
||||
@ -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!!!!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user