[vala/0.50] codegen: GArray, GByteArray and GPtrArray are reference counted
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.50] codegen: GArray, GByteArray and GPtrArray are reference counted
- Date: Wed, 19 May 2021 07:18:41 +0000 (UTC)
commit c1680aacd33781e837f890468f6933a93888bfcf
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon May 3 09:01:04 2021 +0200
codegen: GArray, GByteArray and GPtrArray are reference counted
codegen/valaccodebasemodule.vala | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index f47bed274..141f19467 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3782,11 +3782,8 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
var ccomma = new CCodeCommaExpression ();
if (context.profile == Profile.GOBJECT
- && type.type_symbol != null && !is_reference_counting (type.type_symbol) &&
- (type.type_symbol.is_subtype_of (gstringbuilder_type)
- || type.type_symbol.is_subtype_of (garray_type)
- || type.type_symbol.is_subtype_of (gbytearray_type)
- || type.type_symbol.is_subtype_of (gptrarray_type))) {
+ && type.type_symbol != null && !is_reference_counting (type.type_symbol)
+ && type.type_symbol.is_subtype_of (gstringbuilder_type)) {
ccall.add_argument (new CCodeConstant ("TRUE"));
} else if (context.profile == Profile.GOBJECT
&& type.type_symbol == gthreadpool_type) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]