]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
doclets/gtkdoclet: Do not add an header only for annotations if the comment is empty
authorLuca Bruno <lethalman88@gmail.com>
Tue, 4 May 2010 20:01:24 +0000 (22:01 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Tue, 4 May 2010 20:01:24 +0000 (22:01 +0200)
src/doclets/gtkdoc/generator.vala

index 98446bbce654325ff55dcbbce88b50bf15fb5b18..5efc7dbfa3f4a02e243e09e0660e83430741a731 100644 (file)
@@ -190,7 +190,7 @@ public class Gtkdoc.Generator : Api.Visitor {
        }
 
        private void add_header (string name, Comment? comment, string[]? annotations = null) {
-               if (comment == null && annotations == null) {
+               if (comment == null) {
                        return;
                }
 
@@ -446,7 +446,7 @@ public class Gtkdoc.Generator : Api.Visitor {
                if (param.parameter_type.data_type is Api.Array) {
                        annotations += "array length=%s".printf (param.name+"_length1");
                } 
-                 
+
                add_header (param.name, param.documentation, annotations);
                param.accept_all_children (this);
        }