[gjs/native-registry: 6/8] Use explicit types instead of auto
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/native-registry: 6/8] Use explicit types instead of auto
- Date: Fri, 4 Dec 2020 00:47:13 +0000 (UTC)
commit 1e1333b2628b3ce2f3633448eccac27fcb858fc2
Author: Evan Welsh <contact evanwelsh com>
Date: Fri Oct 16 18:25:00 2020 -0500
Use explicit types instead of auto
gjs/global.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gjs/global.cpp b/gjs/global.cpp
index 4779e4c4..28d569b1 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -286,7 +286,7 @@ GjsGlobalType gjs_global_get_type(JSContext* cx) {
g_assert(global &&
"gjs_global_get_type called before a realm was entered.");
- auto global_type =
+ JS::Value global_type =
gjs_get_global_slot(global, GjsBaseGlobalSlot::GLOBAL_TYPE);
g_assert(global_type.isInt32());
@@ -295,7 +295,7 @@ GjsGlobalType gjs_global_get_type(JSContext* cx) {
}
GjsGlobalType gjs_global_get_type(JSObject* global) {
- auto global_type =
+ JS::Value global_type =
gjs_get_global_slot(global, GjsBaseGlobalSlot::GLOBAL_TYPE);
g_assert(global_type.isInt32());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]