[iagno] Use unowned PossibleMove.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Use unowned PossibleMove.
- Date: Wed, 22 May 2019 13:02:04 +0000 (UTC)
commit 1daf563fc889f8637c047924b6e185bb220eb64d
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue May 14 12:03:02 2019 +0200
Use unowned PossibleMove.
src/computer-reversi.vala | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/computer-reversi.vala b/src/computer-reversi.vala
index b3d29f9..62b20f7 100644
--- a/src/computer-reversi.vala
+++ b/src/computer-reversi.vala
@@ -292,7 +292,7 @@ private abstract class ComputerReversi : ComputerPlayer
sort_moves (ref moves);
/* Try each move using alpha-beta pruning to optimise finding the best branch */
- foreach (PossibleMove? move in moves)
+ foreach (unowned PossibleMove? move in moves)
{
if (move == null)
assert_not_reached ();
@@ -332,7 +332,7 @@ private abstract class ComputerReversi : ComputerPlayer
sort_moves (ref moves);
/* Try each move using alpha-beta pruning to optimise finding the best branch */
- foreach (PossibleMove? move in moves)
+ foreach (unowned PossibleMove? move in moves)
{
if (move == null)
assert_not_reached ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]