[gjs: 6/10] arg: Fix obsolete comment
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 6/10] arg: Fix obsolete comment
- Date: Fri, 4 Feb 2022 05:31:03 +0000 (UTC)
commit e8fb655c62db9c4ed920fca8078ab300f8709630
Author: Philip Chimento <philip chimento gmail com>
Date: Mon Jan 31 18:09:22 2022 -0800
arg: Fix obsolete comment
The comment mentions GByteArray being handled here, but that array type is
handled in the else-if clause above this one.
gi/arg.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/gi/arg.cpp b/gi/arg.cpp
index f2aa97d38..3322c4b79 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -2778,8 +2778,7 @@ gjs_value_from_g_argument (JSContext *context,
}
value_p.setObject(*array);
} else {
- /* this assumes the array type is one of GArray, GPtrArray or
- * GByteArray */
+ // this assumes the array type is GArray or GPtrArray
GjsAutoTypeInfo param_info =
g_type_info_get_param_type(type_info, 0);
g_assert(param_info != nullptr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]