]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
girparser: Fix critical warnings
authorJürg Billeter <j@bitron.ch>
Tue, 29 Jun 2010 18:33:31 +0000 (20:33 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 29 Jun 2010 18:33:31 +0000 (20:33 +0200)
vala/valagirparser.vala

index 4c19d863cc0894e9bc49571658c21b03a0c03bf6..90cdf838234175aadb01b8356b0e4123ec2d2c90 100644 (file)
@@ -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) {