[vala] girparser: Fix critical warnings



commit 19c1a2a30cf875fd952f901f376f884542e0799e
Author: Jürg Billeter <j bitron ch>
Date:   Tue Jun 29 20:33:31 2010 +0200

    girparser: Fix critical warnings

 vala/valagirparser.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 4c19d86..90cdf83 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -178,7 +178,7 @@ public class Vala.GirParser : CodeVisitor {
 		string namespace_name = transform_namespace_name (reader.get_attribute ("name"));
 		var ns = context.root.scope.lookup (namespace_name) as Namespace;
 		if (ns == null) {
-			ns = new Namespace (namespace_name);
+			ns = new Namespace (namespace_name, get_current_src ());
 			new_namespace = true;
 		} else {
 			if (ns.external_package) {



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