[valadoc] typesymbol: coding style fixes
- From: Florian Brosch <flobrosch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [valadoc] typesymbol: coding style fixes
- Date: Wed, 28 Oct 2009 13:06:40 +0000 (UTC)
commit 8ff444338585e60e0f4383458f7dabbde055a4e6
Author: Florian Brosch <flo brosch gmail com>
Date: Wed Oct 28 13:25:41 2009 +0100
typesymbol: coding style fixes
src/libvaladoc/api/typesymbol.vala | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libvaladoc/api/typesymbol.vala b/src/libvaladoc/api/typesymbol.vala
index 12028f7..1a02499 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]