From: Florian Brosch Date: Wed, 28 Oct 2009 12:25:41 +0000 (+0100) Subject: typesymbol: coding style fixes X-Git-Tag: 0.37.1~3^2~510 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ff444338585e60e0f4383458f7dabbde055a4e6;p=thirdparty%2Fvala.git typesymbol: coding style fixes --- diff --git a/src/libvaladoc/api/typesymbol.vala b/src/libvaladoc/api/typesymbol.vala index 12028f77e..1a0249973 100644 --- a/src/libvaladoc/api/typesymbol.vala +++ b/src/libvaladoc/api/typesymbol.vala @@ -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; }