[gjs/wip/ptomato/mozjs45: 9/33] jsapi-class: Remove unnecessary default
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs45: 9/33] jsapi-class: Remove unnecessary default
- Date: Mon, 17 Apr 2017 07:27:25 +0000 (UTC)
commit 0200589647280659e8b1cc23a2ea558f18e9031e
Author: Philip Chimento <philip chimento gmail com>
Date: Sun Mar 19 05:19:41 2017 +0000
jsapi-class: 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-class.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gjs/jsapi-class.h b/gjs/jsapi-class.h
index 1008dd5..06e17ea 100644
--- a/gjs/jsapi-class.h
+++ b/gjs/jsapi-class.h
@@ -290,7 +290,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]