[gjs/wip/js24: 7/11] param.cpp fix jump over value initialisation
- From: Tim Lunn <timl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/js24: 7/11] param.cpp fix jump over value initialisation
- Date: Wed, 25 Sep 2013 21:29:37 +0000 (UTC)
commit 7899fe76b73d1bf6cfe54ec8b3b786e451b9c629
Author: Tim Lunn <tim feathertop org>
Date: Wed Sep 25 08:26:21 2013 +1000
param.cpp fix jump over value initialisation
gi/param.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gi/param.cpp b/gi/param.cpp
index 27c4bbb..4046ee2 100644
--- a/gi/param.cpp
+++ b/gi/param.cpp
@@ -130,7 +130,7 @@ param_get_prop(JSContext *context,
goto out;
}
- if (!gjs_value_from_g_argument(context, value_p, type_info, &arg, TRUE))
+ if (!gjs_value_from_g_argument(context, value_p.address(), type_info, &arg, TRUE))
goto out;
success = JS_TRUE;
@@ -196,6 +196,7 @@ param_new_internal(JSContext *cx,
gchar *nick;
gchar *blurb;
GParamFlags flags;
+ jsval foo;
if (!gjs_parse_args(cx, "GObject.ParamSpec._new_internal",
"!sossi", argc, argv,
@@ -410,7 +411,7 @@ param_new_internal(JSContext *cx,
ret = JS_TRUE;
- jsval foo = OBJECT_TO_JSVAL(gjs_param_from_g_param(cx, pspec));
+ foo = OBJECT_TO_JSVAL(gjs_param_from_g_param(cx, pspec));
JS_SET_RVAL(cx, vp, foo);
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]