[vala] girparser: Support unnamed arguments for all types
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] girparser: Support unnamed arguments for all types
- Date: Wed, 19 Jan 2011 22:33:29 +0000 (UTC)
commit 719b18be691712a0f14e20d4e9f12ea7338c334e
Author: Evan Nemerson <evan coeus-group com>
Date: Wed Jan 19 14:20:57 2011 -0800
girparser: Support unnamed arguments for all types
Fixes bug 636996.
vala/valagirparser.vala | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 78afd72..d79ce1b 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -2263,9 +2263,7 @@ public class Vala.GirParser : CodeVisitor {
int array_length_idx, closure_idx, destroy_idx;
string scope;
string default_param_name = null;
- if (s is Delegate) {
- default_param_name = "arg%d".printf (parameters.size);
- }
+ default_param_name = "arg%d".printf (parameters.size);
var param = parse_parameter (out array_length_idx, out closure_idx, out destroy_idx, out scope, default_param_name);
if (array_length_idx != -1) {
array_length_parameters.add (array_length_idx);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]