зеркало из https://github.com/mozilla/pjs.git
Fixed problems with XPConnect objects.
This commit is contained in:
Родитель
7f215c169b
Коммит
1163aed6bc
|
@ -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,13 +581,11 @@ 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]);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче