[vala] girparser: Shut unused destroys_instance warning
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Shut unused destroys_instance warning
- Date: Mon, 3 Feb 2014 21:02:00 +0000 (UTC)
commit b73ea393088c12a44b1cf830c127315f191002e0
Author: Luca Bruno <lucabru src gnome org>
Date: Mon Feb 3 22:01:26 2014 +0100
girparser: Shut unused destroys_instance warning
vala/valagirparser.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 294a306..9267d7e 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -854,7 +854,7 @@ public class Vala.GirParser : CodeVisitor {
}
if (!(m is CreationMethod)) {
if (metadata.has_argument (ArgumentType.DESTROYS_INSTANCE)) {
- m.set_attribute ("DestroysInstance", true);
+ m.set_attribute ("DestroysInstance",
metadata.get_bool (ArgumentType.DESTROYS_INSTANCE));
}
// merge custom vfunc
if (metadata.has_argument (ArgumentType.VFUNC_NAME)) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]