[vala] girparser: Fix criticals on varargs functions
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Fix criticals on varargs functions
- Date: Tue, 26 Jun 2012 06:55:38 +0000 (UTC)
commit 90889c15ba803fc8e1dbc6ad16104f95ea15848f
Author: JÃrg Billeter <j bitron ch>
Date: Tue Jun 26 08:54:34 2012 +0200
girparser: Fix criticals on varargs functions
vala/valagirparser.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 0b01f20..1dfba8d 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2879,7 +2879,7 @@ public class Vala.GirParser : CodeVisitor {
for (int param_n = parameters.size - 1 ; param_n >= 0 ; param_n--) {
ParameterInfo pi = parameters[param_n];
- if (pi.param.initializer == null) {
+ if (!pi.param.ellipsis && pi.param.initializer == null) {
string type_string = pi.param.variable_type.to_string ();
if (type_string == "Gio.Cancellable?") {
pi.param.initializer = new Vala.NullLiteral ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]