[vala/switch-to-gir] girparser: Always add field since return type is not nullable
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/switch-to-gir] girparser: Always add field since return type is not nullable
- Date: Wed, 25 Aug 2010 22:19:28 +0000 (UTC)
commit c3b0ce443bfedf6d939e2c682efe48a1414aa55e
Author: Luca Bruno <lethalman88 gmail com>
Date: Wed Aug 25 23:32:29 2010 +0200
girparser: Always add field since return type is not nullable
vala/valagirparser.vala | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index c8b59ed..565f400 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1218,10 +1218,7 @@ public class Vala.GirParser : CodeVisitor {
}
if (reader.name == "field") {
- var field = parse_field ();
- if (field != null) {
- st.add_field (field);
- }
+ st.add_field (parse_field ());
} else if (reader.name == "constructor") {
parse_constructor ();
} else if (reader.name == "method") {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]