[dconf] adjust to recent changes in vala compiler
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] adjust to recent changes in vala compiler
- Date: Thu, 29 Dec 2011 02:20:53 +0000 (UTC)
commit 726e1cb641759eeed715b5ac82012edb5923a3e5
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Dec 28 21:20:17 2011 -0500
adjust to recent changes in vala compiler
It is now possible to have arrays of nullable types and some places
where we had the equivalent non-null type are now considered to be
errors.
bin/dconf-dump.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/bin/dconf-dump.vala b/bin/dconf-dump.vala
index 85b60e8..4fb8c02 100644
--- a/bin/dconf-dump.vala
+++ b/bin/dconf-dump.vala
@@ -49,13 +49,13 @@ KeyFile keyfile_from_stdin () throws Error {
class DConfLoadState {
public string[] keys;
- public Variant[] vals;
+ public Variant?[] vals;
int n_keys;
int i;
public DConfLoadState (int n) {
keys = new string[n + 1];
- vals = new Variant[n];
+ vals = new Variant?[n];
n_keys = n;
i = 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]