diff options
author | Jürg Billeter <j@bitron.ch> | 2008-06-23 12:50:45 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2008-06-23 12:50:45 +0000 |
commit | 36538b0b4dec10dc67dd5d41486b5cda2465fd30 (patch) | |
tree | 806d9a155b6f05aaa5a5bd795b70d189fd665532 /vala/valasourcefile.vala | |
parent | abc49d4a058a6312862708a45c7a619e520b09dc (diff) | |
download | vala-36538b0b4dec10dc67dd5d41486b5cda2465fd30.tar.gz |
Import members of the GLib namespace by default, fixes bug 539596
2008-06-23 Jürg Billeter <j@bitron.ch>
* vala/valagenieparser.vala:
* vala/valanamespacereference.vala:
* vala/valasourcefile.vala:
* compiler/valacompiler.vala:
Import members of the GLib namespace by default, fixes bug 539596
svn path=/trunk/; revision=1637
Diffstat (limited to 'vala/valasourcefile.vala')
-rw-r--r-- | vala/valasourcefile.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vala/valasourcefile.vala b/vala/valasourcefile.vala index b9db1efe5..1203c9f25 100644 --- a/vala/valasourcefile.vala +++ b/vala/valasourcefile.vala @@ -108,6 +108,12 @@ public class Vala.SourceFile : Object { * @param ns reference to namespace */ public void add_using_directive (NamespaceReference ns) { + foreach (NamespaceReference using_directive in using_directives) { + if (using_directive.name == ns.name) { + // ignore duplicates + return; + } + } using_directives.add (ns); } |