[libgee] Remove invalid usage of type-argument for Gee.Future.SourceFuncArrayElement
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee] Remove invalid usage of type-argument for Gee.Future.SourceFuncArrayElement
- Date: Sun, 7 Mar 2021 13:31:34 +0000 (UTC)
commit 2ba2faf0140fdc0428a9b6b92669aa2daa9fc98c
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Mar 7 14:12:31 2021 +0100
Remove invalid usage of type-argument for Gee.Future.SourceFuncArrayElement
gee/lazy.vala | 6 +++---
gee/promise.vala | 10 +++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gee/lazy.vala b/gee/lazy.vala
index 19839c5..091ff25 100644
--- a/gee/lazy.vala
+++ b/gee/lazy.vala
@@ -75,7 +75,7 @@ public class Gee.Lazy<G> {
private class Future<G> : Object, Gee.Future<G> {
public Future (Lazy<G> lazy) {
_lazy = lazy;
- _when_done = new Gee.Future.SourceFuncArrayElement<G>[0];
+ _when_done = new Gee.Future.SourceFuncArrayElement[0];
}
public bool ready {
@@ -159,7 +159,7 @@ public class Gee.Lazy<G> {
_eval.broadcast ();
_mutex.unlock ();
- Gee.Future.SourceFuncArrayElement<G>[] when_done = (owned)_when_done;
+ Gee.Future.SourceFuncArrayElement[] when_done = (owned)_when_done;
for (int i = 0; i < when_done.length; i++) {
when_done[i].func ();
}
@@ -169,7 +169,7 @@ public class Gee.Lazy<G> {
private Cond _eval = Cond ();
private Lazy<G> _lazy;
private State _state = State.UNLOCK;
- private Gee.Future.SourceFuncArrayElement<G>[]? _when_done;
+ private Gee.Future.SourceFuncArrayElement[]? _when_done;
private enum State {
UNLOCK,
EVAL
diff --git a/gee/promise.vala b/gee/promise.vala
index ed7b872..4167857 100644
--- a/gee/promise.vala
+++ b/gee/promise.vala
@@ -71,7 +71,7 @@ public class Gee.Promise<G> {
private class Future<G> : Object, Gee.Future<G> {
public Future () {
- _when_done = new Gee.Future.SourceFuncArrayElement<G>[0];
+ _when_done = new Gee.Future.SourceFuncArrayElement[0];
}
public bool ready {
@@ -168,7 +168,7 @@ public class Gee.Promise<G> {
_value = (owned)value;
_set.broadcast ();
_mutex.unlock ();
- Gee.Future.SourceFuncArrayElement<G>[] when_done = (owned)_when_done;
+ Gee.Future.SourceFuncArrayElement[] when_done = (owned)_when_done;
for (int i = 0; i < when_done.length; i++) {
when_done[i].func ();
}
@@ -181,7 +181,7 @@ public class Gee.Promise<G> {
_exception = (owned)exception;
_set.broadcast ();
_mutex.unlock ();
- Gee.Future.SourceFuncArrayElement<G>[] when_done = (owned)_when_done;
+ Gee.Future.SourceFuncArrayElement[] when_done = (owned)_when_done;
for (int i = 0; i < when_done.length; i++) {
when_done[i].func ();
}
@@ -197,7 +197,7 @@ public class Gee.Promise<G> {
_state = State.ABANDON;
_set.broadcast ();
_mutex.unlock ();
- Gee.Future.SourceFuncArrayElement<G>[] when_done = (owned)_when_done;
+ Gee.Future.SourceFuncArrayElement[] when_done = (owned)_when_done;
for (int i = 0; i < when_done.length; i++) {
when_done[i].func ();
}
@@ -208,7 +208,7 @@ public class Gee.Promise<G> {
private State _state;
private G? _value;
private GLib.Error? _exception;
- private Gee.Future.SourceFuncArrayElement<G>[]? _when_done;
+ private Gee.Future.SourceFuncArrayElement[]? _when_done;
private enum State {
INIT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]