[vala/staging] vala: Return unowned references of internal helper symbols
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Return unowned references of internal helper symbols
- Date: Mon, 30 Sep 2019 14:21:39 +0000 (UTC)
commit 2b00c992ed8f5ac900131f17a995abf992c20d64
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Sep 30 12:59:51 2019 +0200
vala: Return unowned references of internal helper symbols
vala/valaarraytype.vala | 8 ++++----
vala/valaenumvaluetype.vala | 2 +-
vala/valasignaltype.vala | 6 +++---
3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/vala/valaarraytype.vala b/vala/valaarraytype.vala
index 84522ca4c..e9104db54 100644
--- a/vala/valaarraytype.vala
+++ b/vala/valaarraytype.vala
@@ -105,7 +105,7 @@ public class Vala.ArrayType : ReferenceType {
return null;
}
- private ArrayLengthField get_length_field () {
+ unowned ArrayLengthField get_length_field () {
if (length_field == null) {
length_field = new ArrayLengthField (source_reference);
@@ -122,7 +122,7 @@ public class Vala.ArrayType : ReferenceType {
return length_field;
}
- private ArrayResizeMethod get_resize_method () {
+ unowned ArrayResizeMethod get_resize_method () {
if (resize_method == null) {
resize_method = new ArrayResizeMethod (source_reference);
@@ -138,7 +138,7 @@ public class Vala.ArrayType : ReferenceType {
return resize_method;
}
- private ArrayMoveMethod get_move_method () {
+ unowned ArrayMoveMethod get_move_method () {
if (move_method == null) {
move_method = new ArrayMoveMethod (source_reference);
@@ -154,7 +154,7 @@ public class Vala.ArrayType : ReferenceType {
return move_method;
}
- private ArrayCopyMethod get_copy_method () {
+ unowned ArrayCopyMethod get_copy_method () {
if (copy_method == null) {
copy_method = new ArrayCopyMethod (source_reference);
diff --git a/vala/valaenumvaluetype.vala b/vala/valaenumvaluetype.vala
index be8ac15d0..6c6aca398 100644
--- a/vala/valaenumvaluetype.vala
+++ b/vala/valaenumvaluetype.vala
@@ -41,7 +41,7 @@ public class Vala.EnumValueType : ValueType {
return result;
}
- public Method get_to_string_method () {
+ public unowned Method get_to_string_method () {
if (to_string_method == null) {
var string_type = new ObjectType ((Class) CodeContext.get ().root.scope.lookup
("string"));
string_type.value_owned = false;
diff --git a/vala/valasignaltype.vala b/vala/valasignaltype.vala
index f6a176b18..5ee83dfdc 100644
--- a/vala/valasignaltype.vala
+++ b/vala/valasignaltype.vala
@@ -77,7 +77,7 @@ public class Vala.SignalType : CallableType {
return result;
}
- Method get_connect_method () {
+ unowned Method get_connect_method () {
if (connect_method == null) {
var ulong_type = new IntegerType ((Struct) CodeContext.get ().root.scope.lookup
("ulong"));
connect_method = new Method ("connect", ulong_type);
@@ -89,7 +89,7 @@ public class Vala.SignalType : CallableType {
return connect_method;
}
- Method get_connect_after_method () {
+ unowned Method get_connect_after_method () {
if (connect_after_method == null) {
var ulong_type = new IntegerType ((Struct) CodeContext.get ().root.scope.lookup
("ulong"));
connect_after_method = new Method ("connect_after", ulong_type);
@@ -101,7 +101,7 @@ public class Vala.SignalType : CallableType {
return connect_after_method;
}
- Method get_disconnect_method () {
+ unowned Method get_disconnect_method () {
if (disconnect_method == null) {
disconnect_method = new Method ("disconnect", new VoidType ());
disconnect_method.access = SymbolAccessibility.PUBLIC;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]