]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix Symbol.get_cheader_filenames
authorJürg Billeter <j@bitron.ch>
Thu, 12 Aug 2010 13:56:16 +0000 (15:56 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 12 Aug 2010 13:56:16 +0000 (15:56 +0200)
vala/valasymbol.vala

index 1aa5ed7c6f1d9ad0b0ff9c320b5dc2d64dc13630..57a0e9e1cff605bfa44a73b75828b0b4caeff32d 100644 (file)
@@ -250,11 +250,11 @@ public abstract class Vala.Symbol : CodeNode {
                                if (parent_header_filenames.size > 0) {
                                        return parent_header_filenames;
                                }
+                       }
 
-                               if (source_reference != null && !external_package) {
-                                       // don't add default include directives for VAPI files
-                                       add_cheader_filename (source_reference.file.get_cinclude_filename ());
-                               }
+                       if (source_reference != null && !external_package) {
+                               // don't add default include directives for VAPI files
+                               add_cheader_filename (source_reference.file.get_cinclude_filename ());
                        } else {
                                if (_empty_string_list == null) {
                                        _empty_string_list = new ArrayList<string> ();