[vala/tintou/ptr-array-foreach: 2/3] codegen: GArray, GByteArray and GPtrArray are reference counted
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/tintou/ptr-array-foreach: 2/3] codegen: GArray, GByteArray and GPtrArray are reference counted
- Date: Mon, 3 May 2021 07:11:37 +0000 (UTC)
commit 7c456874a4c45849f91752c1a583052b42205954
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 34963707d..fc52e7b8c 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3789,11 +3789,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]