Fixed problems with XPConnect objects.

This commit is contained in:
waterson%netscape.com 1999-04-27 04:20:16 +00:00
Родитель 7f215c169b
Коммит 1163aed6bc
1 изменённых файлов: 8 добавлений и 13 удалений

Просмотреть файл

@ -507,9 +507,8 @@ MsgAppCoreViewAllMessages(JSContext *cx, JSObject *obj, uintN argc, jsval *argv,
} }
if (argc >= 1) { if (argc >= 1) {
rBool = nsJSUtils::nsConvertJSValToObject((nsISupports**)&db, rBool = nsJSUtils::nsConvertJSValToXPCObject((nsISupports**)&db,
nsIRDFCompositeDataSource::GetIID(), nsIRDFCompositeDataSource::GetIID(),
typeName,
cx, cx,
argv[0]); argv[0]);
@ -545,9 +544,8 @@ MsgAppCoreViewUnreadMessages(JSContext *cx, JSObject *obj, uintN argc, jsval *ar
} }
if (argc >= 1) { if (argc >= 1) {
rBool = nsJSUtils::nsConvertJSValToObject((nsISupports**)&db, rBool = nsJSUtils::nsConvertJSValToXPCObject((nsISupports**)&db,
nsIRDFCompositeDataSource::GetIID(), nsIRDFCompositeDataSource::GetIID(),
typeName,
cx, cx,
argv[0]); argv[0]);
@ -583,14 +581,12 @@ MsgAppCoreViewAllThreadMessages(JSContext *cx, JSObject *obj, uintN argc, jsval
} }
if (argc >= 1) { if (argc >= 1) {
rBool = nsJSUtils::nsConvertJSValToObject((nsISupports**)&db, rBool = nsJSUtils::nsConvertJSValToXPCObject((nsISupports**)&db,
nsIRDFCompositeDataSource::GetIID(), nsIRDFCompositeDataSource::GetIID(),
typeName, cx,
cx, argv[0]);
argv[0]);
if (!rBool || NS_OK != nativeThis->ViewAllThreadMessages(db)) { if (!rBool || NS_OK != nativeThis->ViewAllThreadMessages(db)) {
return JS_FALSE; return JS_FALSE;
} }
@ -625,9 +621,8 @@ MsgAppCoreNewFolder(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval
if (argc >= 2) { if (argc >= 2) {
rBool = nsJSUtils::nsConvertJSValToObject((nsISupports**)&db, rBool = nsJSUtils::nsConvertJSValToXPCObject((nsISupports**)&db,
nsIRDFCompositeDataSource::GetIID(), nsIRDFCompositeDataSource::GetIID(),
typeName,
cx, cx,
argv[0]); argv[0]);