[vala/0.14] glib-2.0: Fix some issues for the experimental non-null checks
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.14] glib-2.0: Fix some issues for the experimental non-null checks
- Date: Tue, 31 Jan 2012 13:14:22 +0000 (UTC)
commit 8c26945205570eef5bc1dcf88532be1c3b61b305
Author: Jacques-Pascal Deplaix <jp deplaix gmail com>
Date: Mon Jun 20 19:28:13 2011 +0200
glib-2.0: Fix some issues for the experimental non-null checks
Fixes bug 651841.
vapi/glib-2.0.vapi | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index a3e6c94..5d34e36 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -1361,7 +1361,7 @@ public class string {
if (str == null) {
str_size = 0;
} else {
- str_size = str.length;
+ str_size = ((!)(str)).length;
}
string* result = GLib.malloc0 (this.length - (end - start) + str_size + 1);
@@ -3086,12 +3086,12 @@ namespace GLib {
if (c == '\n') {
break;
}
- ret.append_c ((char) c);
+ ((!)(ret)).append_c ((char) c);
}
if (ret == null) {
return null;
} else {
- return ret.str;
+ return ((!)(ret)).str;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]