summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2023-04-10 23:42:16 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2023-04-11 09:32:35 +0200
commitbd90d5d57953794e1449e2340209c584aed1f4b7 (patch)
tree6651e563d21410d96466810288cf5ab65b320417
parentbedd5126ceba2522fcce9b7a6e3ecc7c3978b808 (diff)
downloadvala-bd90d5d57953794e1449e2340209c584aed1f4b7.tar.gz
valadoc: Add missing generic type arguments
-rw-r--r--libvaladoc/html/basicdoclet.vala8
-rw-r--r--valadoc/doclets/gtkdoc/gcomment.vala4
2 files changed, 6 insertions, 6 deletions
diff --git a/libvaladoc/html/basicdoclet.vala b/libvaladoc/html/basicdoclet.vala
index ab18684a4..998c27ba4 100644
--- a/libvaladoc/html/basicdoclet.vala
+++ b/libvaladoc/html/basicdoclet.vala
@@ -306,7 +306,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
protected void fetch_subnamespace_names (Api.Node node, Vala.ArrayList<Namespace> namespaces) {
var children = node.get_children_by_type (Api.NodeType.NAMESPACE);
- children.sort ((CompareDataFunc) Api.Node.compare_to);
+ children.sort ((CompareDataFunc<Api.Node>) Api.Node.compare_to);
foreach (Api.Node child in children) {
namespaces.add ((Namespace) child);
this.fetch_subnamespace_names (child, namespaces);
@@ -388,7 +388,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
protected void write_navi_children (Api.Node node, Api.NodeType type, Api.Node? parent) {
var children = node.get_children_by_type (type);
- children.sort ((CompareDataFunc) Api.Node.compare_to);
+ children.sort ((CompareDataFunc<Api.Node>) Api.Node.compare_to);
foreach (Api.Node child in children) {
write_navi_entry (child, parent, cssresolver.resolve (child), child != parent);
}
@@ -628,7 +628,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
return ;
}
- nodes.sort ((CompareDataFunc) Api.Node.compare_to);
+ nodes.sort ((CompareDataFunc<Api.Node>) Api.Node.compare_to);
// Box:
var html_id = "box-content-" + html_id_counter.to_string ();
@@ -985,7 +985,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
if (children.size > 0) {
// Follow Vala.Codewriter.visit_struct() and don't sort struct fields
if (!(node is Api.Struct && type == Api.NodeType.FIELD)) {
- children.sort ((CompareDataFunc) Api.Node.compare_to);
+ children.sort ((CompareDataFunc<Api.Node>) Api.Node.compare_to);
}
writer.start_tag ("h3", {"class", css_title})
.text (type_string)
diff --git a/valadoc/doclets/gtkdoc/gcomment.vala b/valadoc/doclets/gtkdoc/gcomment.vala
index 0cedacc8c..81bf50184 100644
--- a/valadoc/doclets/gtkdoc/gcomment.vala
+++ b/valadoc/doclets/gtkdoc/gcomment.vala
@@ -71,7 +71,7 @@ public class Gtkdoc.GComment {
builder.append_printf ("\n * @short_description: %s", commentize (brief_comment));
}
- headers.sort ((CompareDataFunc) Header.cmp);
+ headers.sort ((CompareDataFunc<Header>) Header.cmp);
foreach (var header in headers) {
builder.append_printf ("\n * @%s:", header.name);
if (header.annotations != null && header.annotations.length > 0) {
@@ -167,7 +167,7 @@ public class Gtkdoc.GComment {
builder.append (long_comment);
}
- headers.sort ((CompareDataFunc) Header.cmp);
+ headers.sort ((CompareDataFunc<Header>) Header.cmp);
if (headers.size > 0 || returns != null) {
builder.append ("""<variablelist role="params">""");
foreach (var header in headers) {