代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/folks 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From c44d8e323affd7f1043f300f3325b358cd5b5f0b Mon Sep 17 00:00:00 2001
From: Rico Tzschichholz <ricotz@ubuntu.com>
Date: Sun, 30 Jan 2022 19:42:32 +0100
Subject: [PATCH] folks-generics: Add missing generic type argument
---
folks/folks-generics.vapi | 2 +-
folks/small-set.c | 15 ++++-----------
folks/small-set.h | 5 ++++-
3 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/folks/folks-generics.vapi b/folks/folks-generics.vapi
index 389025b6..c8a06e96 100644
--- a/folks/folks-generics.vapi
+++ b/folks/folks-generics.vapi
@@ -37,7 +37,7 @@ namespace Folks
internal SmallSet (owned Gee.HashDataFunc<G>? item_hash = null,
owned Gee.EqualDataFunc<G>? item_equals = null);
- internal static SmallSet<G> copy (Gee.Iterable<G> iterable,
+ internal static SmallSet<G> copy<G> (Gee.Iterable<G> iterable,
owned Gee.HashDataFunc<G>? item_hash = null,
owned Gee.EqualDataFunc<G>? item_equals = null);
diff --git a/folks/small-set.c b/folks/small-set.c
index b5a19683..39790755 100644
--- a/folks/small-set.c
+++ b/folks/small-set.c
@@ -337,7 +337,10 @@ _folks_small_set_new_take_array (GPtrArray *arr,
* Returns: (transfer full):
*/
FolksSmallSet *
-folks_small_set_copy (GeeIterable *iterable,
+folks_small_set_copy (GType item_type,
+ GBoxedCopyFunc item_dup,
+ GDestroyNotify item_free,
+ GeeIterable *iterable,
GeeHashDataFunc item_hash,
gpointer item_hash_data,
GDestroyNotify item_hash_data_free,
@@ -347,10 +350,6 @@ folks_small_set_copy (GeeIterable *iterable,
{
FolksSmallSet *self;
GeeIterator *iter;
- GeeTraversableIface *traversable_iface;
- GType item_type;
- GBoxedCopyFunc item_dup;
- GDestroyNotify item_free;
/* Deliberately not allowing for subclasses here: this class is not
* subclassable, and it's slower if we do check for subclasses. */
@@ -376,12 +375,6 @@ folks_small_set_copy (GeeIterable *iterable,
return self;
}
- traversable_iface = GEE_TRAVERSABLE_GET_INTERFACE (iterable);
- g_assert (traversable_iface != NULL);
- item_type = traversable_iface->get_g_type ((GeeTraversable *) iterable);
- item_dup = traversable_iface->get_g_dup_func ((GeeTraversable *) iterable);
- item_free = traversable_iface->get_g_destroy_func ((GeeTraversable *) iterable);
-
self = folks_small_set_new (item_type, item_dup, item_free,
item_hash, item_hash_data, item_hash_data_free,
item_equals, item_equals_data, item_equals_data_free);
diff --git a/folks/small-set.h b/folks/small-set.h
index e61f387e..5df54ce3 100644
--- a/folks/small-set.h
+++ b/folks/small-set.h
@@ -68,7 +68,10 @@ folks_small_set_empty (GType item_type,
GBoxedCopyFunc item_dup,
GDestroyNotify item_free);
-FolksSmallSet *folks_small_set_copy (GeeIterable *iterable,
+FolksSmallSet *folks_small_set_copy (GType item_type,
+ GBoxedCopyFunc item_dup,
+ GDestroyNotify item_free,
+ GeeIterable *iterable,
GeeHashDataFunc item_hash,
gpointer item_hash_data,
GDestroyNotify item_hash_data_free,
--
GitLab
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。