Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: samples/dartcombat/grids.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/dartcombat/grids.dart
diff --git a/samples/dartcombat/grids.dart b/samples/dartcombat/grids.dart
index 2f5d3ba82144b194bfcfe64c3ab13dea1e081d03..4a4c7ffee9374d6f3aca325cef6a3089183a0b58 100644
--- a/samples/dartcombat/grids.dart
+++ b/samples/dartcombat/grids.dart
@@ -21,9 +21,9 @@ class Boat {
class BoatGrid {
List<List<Boat>> boatMap;
- BoatGrid() : boatMap = new List.fixedLength(Constants.SIZE) {
+ BoatGrid() : boatMap = new List(Constants.SIZE) {
for (int i = 0; i < Constants.SIZE; i++) {
- boatMap[i] = new List.fixedLength(10);
+ boatMap[i] = new List(10);
}
}
@@ -61,9 +61,9 @@ class GridState {
List<List<int>> cells;
GridState()
- : cells = new List.fixedLength(Constants.SIZE) {
+ : cells = new List(Constants.SIZE) {
for (int i = 0; i < Constants.SIZE; i++) {
- cells[i] = new List.fixedLength(10);
+ cells[i] = new List(10);
}
}

Powered by Google App Engine
This is Rietveld 408576698