[vala] Consider unowned and owned types equivalent if they are not disposable
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Consider unowned and owned types equivalent if they are not disposable
- Date: Sat, 16 Oct 2010 07:39:18 +0000 (UTC)
commit 2edd63ce1785bf080d2ee1fe2d0703eb180363dd
Author: Jürg Billeter <j bitron ch>
Date: Sat Oct 16 09:38:05 2010 +0200
Consider unowned and owned types equivalent if they are not disposable
Fixes bug 631920.
vala/valadatatype.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valadatatype.vala b/vala/valadatatype.vala
index aa838d1..2eccdd5 100644
--- a/vala/valadatatype.vala
+++ b/vala/valadatatype.vala
@@ -235,7 +235,7 @@ public abstract class Vala.DataType : CodeNode {
* otherwise
*/
public virtual bool equals (DataType type2) {
- if (type2.value_owned != value_owned) {
+ if (type2.is_disposable () != is_disposable ()) {
return false;
}
if (type2.nullable != nullable) {
@@ -267,7 +267,7 @@ public abstract class Vala.DataType : CodeNode {
* @return true if this type reference is stricter or equal
*/
public virtual bool stricter (DataType type2) {
- if (type2.value_owned != value_owned) {
+ if (type2.is_disposable () != is_disposable ()) {
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]