[valadoc] doclets/gtkdoc: Do not add transfer full annotation for delegates
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] doclets/gtkdoc: Do not add transfer full annotation for delegates
- Date: Fri, 20 Aug 2010 07:22:14 +0000 (UTC)
commit 9f2e3dbdf92644de18a5d99b20be6c00800c6f19
Author: Luca Bruno <lethalman88 gmail com>
Date: Fri Aug 20 02:19:29 2010 +0200
doclets/gtkdoc: Do not add transfer full annotation for delegates
src/doclets/gtkdoc/generator.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index 25359e6..15d12b8 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -604,7 +604,7 @@ public class Gtkdoc.Generator : Api.Visitor {
annotations += "allow-none";
}
- if (param.parameter_type.is_owned) {
+ if (param.parameter_type.is_owned && !(param.parameter_type.data_type is Api.Delegate)) {
annotations += "transfer full";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]