[vala] glib-2.0: Fix some issues for the experimental non-null checks
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: Fix some issues for the experimental non-null checks
- Date: Sun, 25 Dec 2011 14:19:44 +0000 (UTC)
commit 07f51c304ffee8c3d28cdb09b260c2889f37424b
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 39274d3..def6bcc 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);
@@ -3096,12 +3096,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]