[vala/0.14] girparser: Do not create ArrayType twice with array metadata argument



commit 9072fa348602b8a5ed90e6096445f1af7751dc3f
Author: Luca Bruno <lucabru src gnome org>
Date:   Sun Oct 9 10:50:32 2011 +0200

    girparser: Do not create ArrayType twice with array metadata argument

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index a3d650e..be3d241 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1534,7 +1534,7 @@ public class Vala.GirParser : CodeVisitor {
 				parse_type_arguments_from_string (type, metadata.get_string (ArgumentType.TYPE_ARGUMENTS), metadata.get_source_reference (ArgumentType.TYPE_ARGUMENTS));
 			}
 
-			if (metadata.get_bool (ArgumentType.ARRAY)) {
+			if (!(type is ArrayType) && metadata.get_bool (ArgumentType.ARRAY)) {
 				type = new ArrayType (type, 1, type.source_reference);
 				changed = true;
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]