[gjs/wip/ptomato/mozjs45prep: 8/26] jsapi-util: Remove unnecessary default
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs45prep: 8/26] jsapi-util: Remove unnecessary default
- Date: Wed, 29 Mar 2017 23:46:56 +0000 (UTC)
commit 939a438dc93677d21f9bcbc60f0bdffbac9d1ecf
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Mar 19 05:19:41 2017 +0000
jsapi-util: Remove unnecessary default
This would have to change to nullptr in SpiderMonkey 45 since JS::Rooted
now treats nullptr differently from NULL. But instead we can just remove
it since it is already the default initial value for JS::RootedObject.
gjs/jsapi-util.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 53719f2..5515660 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -275,7 +275,7 @@ gjs_##name##_constructor(JSContext *context, \
* be at the very top.
*/
#define GJS_NATIVE_CONSTRUCTOR_VARIABLES(name) \
- JS::RootedObject object(context, NULL); \
+ JS::RootedObject object(context); \
JS::CallArgs argv G_GNUC_UNUSED = JS::CallArgsFromVp(argc, vp);
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]