]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
typesymbol: coding style fixes
authorFlorian Brosch <flo.brosch@gmail.com>
Wed, 28 Oct 2009 12:25:41 +0000 (13:25 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Wed, 28 Oct 2009 12:43:17 +0000 (13:43 +0100)
src/libvaladoc/api/typesymbol.vala

index 12028f77e71f9be5c54052a3240ffcc9977c8dc0..1a02499737d248c4ed8728fea8e790bd30be8080 100644 (file)
@@ -30,12 +30,12 @@ public abstract class Valadoc.Api.TypeSymbol : Symbol {
 
        public bool is_basic_type {
                get {
-                       if (this.symbol is Vala.Struct) {
-                               unowned Vala.Struct mystruct = (Vala.Struct) this.symbol;
-                               return mystruct.base_type == null && (mystruct.is_boolean_type () || mystruct.is_floating_type () || mystruct.is_integer_type ());
-                       } else if (this.symbol is Vala.Class) {
-                               unowned Vala.Class myclass = (Vala.Class) this.symbol;
-                               return myclass.base_class == null && myclass.name == "string";
+                       if (symbol is Vala.Struct) {
+                               var vala_struct = symbol as Vala.Struct;
+                               return vala_struct.base_type == null && (vala_struct.is_boolean_type () || vala_struct.is_floating_type () || vala_struct.is_integer_type ());
+                       } else if (symbol is Vala.Class) {
+                               var vala_class = symbol as Vala.Class;
+                               return vala_class.base_class == null && vala_class.name == "string";
                        }
                        return false;
                }