[gnome-sudoku] SudokuBoard: more type cleanup



commit 1723951f88d56ae1436aeb1350b6d5791227c24b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Oct 4 17:24:44 2014 -0500

    SudokuBoard: more type cleanup

 lib/sudoku-board.vala |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/sudoku-board.vala b/lib/sudoku-board.vala
index b36d694..a41e3aa 100644
--- a/lib/sudoku-board.vala
+++ b/lib/sudoku-board.vala
@@ -148,7 +148,7 @@ public class SudokuBoard : Object
         }
         coords_for_row = coords_for_row.read_only_view;
 
-        coords_for_block = new HashMap<Coord?, ArrayList<Coord?>> ((HashDataFunc<Coord>) Coord.hash, 
(EqualDataFunc<Coord>) Coord.equal);
+        coords_for_block = new HashMap<Coord?, Gee.List<Coord?>> ((HashDataFunc<Coord>) Coord.hash, 
(EqualDataFunc<Coord>) Coord.equal);
         for (int col = 0; col < block_cols; col++)
         {
             for (int row = 0; row < block_rows; row++)
@@ -488,15 +488,15 @@ public class SudokuBoard : Object
         return cells;
     }
 
-    public HashMap<Coord?, ArrayList<int>> calculate_open_squares () {
-        var possibilities = new HashMap<Coord?, ArrayList<int>> ((HashDataFunc<Coord>) Coord.hash, 
(EqualDataFunc<Coord>) Coord.equal);
+    public HashMap<Coord?, Gee.List<int>> calculate_open_squares () {
+        var possibilities = new HashMap<Coord?, Gee.List<int>> ((HashDataFunc<Coord>) Coord.hash, 
(EqualDataFunc<Coord>) Coord.equal);
         for (var l1 = 0; l1 < rows; l1++)
         {
             for (var l2 = 0; l2 < cols; l2++)
             {
                 if (cells[l1, l2] == 0)
                 {
-                    ArrayList<int> possArrayList = new ArrayList<int> ();
+                    Gee.List<int> possArrayList = new ArrayList<int> ();
                     int[] possArray = get_possibilities (l1, l2);
                     foreach (int i in possArray) {
                         possArrayList.add (i);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]